aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/system-binary-constants-1.c
blob: 921ee20863576b6af7645c3452d3a87a6d2c3c78 (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-binary-constants-1.h"

int
foo (void)
{
#if BINARY_INT_CONSTANT_IN_SYSTEM_HEADER /* A binary constant defined
					    in system header.  No
					    warning.  */
  return 23;
#endif
  return 0b1101; /* { dg-warning "binary constants are a GCC extension" } */
}