1 2 3 4 5 6 7 8 9 10
// { 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; }