2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / null2.C
blob3c8c50a2080ef903db8e44c7589f6bfecedce216
1 // { dg-do run  }
2 // Based on a testcase by Eric Dumazet <Eric.Dumazet@COSMOSBAY.COM>
4 extern "C" void abort ();
6 const char * const foo = ""; // foo is not NULL
8 int main() {
9   if ((foo == 0) ? 0 : foo)  // so this should evaluate to `foo'
10     return 0;
11   else
12     abort();