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