PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / system-binary-constants-1.c
blob921ee20863576b6af7645c3452d3a87a6d2c3c78
1 /*
2 Origin: Dodji Seketeli <dodji@redhat.com>
3 { dg-options "-std=iso9899:1999 -pedantic" }
4 { dg-do compile }
5 */
7 #include "system-binary-constants-1.h"
9 int
10 foo (void)
12 #if BINARY_INT_CONSTANT_IN_SYSTEM_HEADER /* A binary constant defined
13 in system header. No
14 warning. */
15 return 23;
16 #endif
17 return 0b1101; /* { dg-warning "binary constants are a GCC extension" } */