Debian Codegraph @

gcc/testsuite/gcc.dg/pr101171.c

raw
1 /* PR c/101171 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4
5 extern void foo (void);
6 int x = 0x1234;
7
8 void
9 bar (void)
10 {
11 if (x != (sizeof ((enum T) 0x1234))) /* { dg-error "conversion to incomplete type" } */
12 foo ();
13 }