1 // { dg-do compile { target c++11 } } 2 // { dg-options "-std=gnu++98 -Wc++11-compat" } 3 int static_assert; // { dg-warning "is a keyword" } 4 int nullptr; // { dg-warning "is a keyword" } 5 foo()6 void foo() 7 { 8 static_assert = 5; 9 nullptr = 5; 10 } 11