Debian Codegraph @

gcc/testsuite/gcc.dg/system-octal-constants-1.c

raw
1 /*
2 Origin: Dodji Seketeli <[email protected]>
3 { dg-options "-std=iso9899:1999 -pedantic" }
4 { dg-do compile }
5 */
6
7 #include "system-octal-constants-1.h"
8
9 int
10 foo (void)
11 {
12 #if OCTAL_INT_CONSTANT_IN_SYSTEM_HEADER /* A octal constant defined
13 in system header. No
14 warning. */
15 return 23;
16 #endif
17 return 0o1307; /* { dg-warning "'0o' prefixed constants are a C2Y feature or GCC extension" } */
18 }