1 2 3 4 5 6 7 8 9 10 11 12
// Based on a testcase by Eric Dumazet <Eric.Dumazet@COSMOSBAY.COM> #include <cstdlib> const char * const foo = ""; // foo is not NULL int main() { if ((foo == 0) ? 0 : foo) // so this should evaluate to `foo' return 0; else std::abort(); }