2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr43082.c
bloba6e00461673c76792f3686e780df7abced70539e
1 /* Test that the compiler does not crash when void expressions are
2 found inside conditional expressions. PR c/43082. */
3 /* { dg-do compile } */
5 void
6 foo (int x)
8 if (x ? (void)(0) : (void)(1)) /* { dg-error "void value not ignored as it ought to be" } */