aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/system-octal-constants-1.c
blob: a6b816004a2ad09c2ba6bcbc45f01f264fe10f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 
   Origin: Dodji Seketeli <dodji@redhat.com>
   { dg-options "-std=iso9899:1999 -pedantic" } 
   { dg-do compile } 
 */

#include "system-octal-constants-1.h"

int
foo (void)
{
#if OCTAL_INT_CONSTANT_IN_SYSTEM_HEADER /* A octal constant defined
					   in system header.  No
					   warning.  */
  return 23;
#endif
  return 0o1307; /* { dg-warning "'0o' prefixed constants are a C2Y feature or GCC extension" } */
}