]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/c2x-binary-constants-2.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / c2x-binary-constants-2.c
CommitLineData
e400a649
JM
1/* Test that binary constants are accepted in C2X mode: compat warnings. */
2/* { dg-do compile } */
3/* { dg-options "-std=c2x -Wc11-c2x-compat" } */
4
5int a = 0b1; /* { dg-warning "C2X feature" } */
6#if 0b101 /* { dg-warning "C2X feature" } */
7#endif
8
9int b = 0B1; /* { dg-warning "C2X feature" } */
10#if 0B101 /* { dg-warning "C2X feature" } */
11#endif