aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/system-binary-constants-1.C
blob: 951fa3c5f19febb6bcef9db963c2103dcf8ec917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Origin: Dodji Seketeli <dodji@redhat.com>
// { dg-do compile { target c++1y } }

#include "../system-binary-constants-1.h"

int
foo (void)
{
#if BINARY_INT_CONSTANT_IN_SYSTEM_HEADER
  return 23;
#endif
  return 0b1101; // { dg-bogus "binary constants are a C..1y feature or GCC extension" }
}