/* Test for octal integer constants: -pedantic warnings. */ /* Origin: Joerg Wunsch . */ /* { dg-do compile } */ /* { dg-options "-std=iso9899:1999 -pedantic -ftrack-macro-expansion=0" } */ #define FOO 0o1307 int foo (void) { #if FOO /* { dg-warning "'0o' prefixed constants are a C2Y feature or GCC extension" } */ return 23; #endif return 0o1307; /* { dg-warning "'0o' prefixed constants are a C2Y feature or GCC extension" } */ }