Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/system-binary-constants-1.C

raw
1 // Origin: Dodji Seketeli <[email protected]>
2 // { dg-do compile { target c++14 } }
3
4 #include "../system-binary-constants-1.h"
5
6 int
7 foo (void)
8 {
9 #if BINARY_INT_CONSTANT_IN_SYSTEM_HEADER
10 return 23;
11 #endif
12 return 0b1101; // { dg-bogus "binary constants are a C..14 feature or GCC extension" }
13 }