libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-binary-constants-1.c
blobfdc7df4bfad4a37721a6724dd8894d9f51137696
1 /* Test that binary constants are diagnosed in C11 mode: -pedantic. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11 -pedantic" } */
5 int a = 0b1; /* { dg-warning "binary constants" } */
6 #if 0b101 /* { dg-warning "binary constants" } */
7 #endif
9 int b = 0B1; /* { dg-warning "binary constants" } */
10 #if 0B101 /* { dg-warning "binary constants" } */
11 #endif