rt_gccstream/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C

10 lines
216 B
C

// { dg-options "-std=gnu++98 -Wc++0x-compat" }
int static_assert; // { dg-warning "will become a keyword" }
int nullptr; // { dg-warning "will become a keyword" }
void foo()
{
static_assert = 5;
nullptr = 5;
}