]>
Commit | Line | Data |
---|---|---|
0b2c4be5 DS |
1 | /* |
2 | Origin: Dodji Seketeli <dodji@redhat.com> | |
3 | { dg-options "-std=iso9899:1999 -pedantic" } | |
4 | { dg-do compile } | |
5 | */ | |
6 | ||
7 | #include "system-binary-constants-1.h" | |
8 | ||
9 | int | |
10 | foo (void) | |
11 | { | |
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 GCC extension" } */ | |
18 | } |