Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
warn_cxx0x.C
blob: e07d33b7faf752bc99f82c118ff6d19e016dad61 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-options "-std=gnu++98 -Wc++11-compat" }
int
static_assert
;
// { dg-warning "is a keyword" }
int
nullptr
;
// { dg-warning "is a keyword" }
void
foo
()
{
static_assert
=
5
;
nullptr
=
5
;
}