Debian Codegraph @

gcc/testsuite/gcc.dg/octal-constants-2.c

raw
1 /* Test for octal integer constants: -pedantic warnings. */
2
3 /* Origin: Joerg Wunsch <[email protected]>. */
4 /* { dg-do compile } */
5 /* { dg-options "-std=iso9899:1999 -pedantic -ftrack-macro-expansion=0" } */
6
7 #define FOO 0o1307
8
9 int
10 foo (void)
11 {
12 #if FOO /* { dg-warning "'0o' prefixed constants are a C2Y feature or GCC extension" } */
13 return 23;
14 #endif
15 return 0o1307; /* { dg-warning "'0o' prefixed constants are a C2Y feature or GCC extension" } */
16 }