2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / system-binary-constants-1.C
blob614f9265d41223658a579c0e10ab3fb0a3815be4
1 /* 
2    Origin: Dodji Seketeli <dodji@redhat.com>
3    { dg-options "-std=c++98 -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 C..14 feature or GCC extension" } */