Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/system-binary-constants-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* 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" } */ }