1 // { dg-do compile { target c++14 } } 2 3 struct A { A(); }; 4 f(int i)5constexpr int f(int i) { 6 static int j = i; // { dg-error "static" } 7 thread_local int l = i; // { dg-error "thread_local" } 8 goto foo; // { dg-error "goto" } 9 foo: 10 asm("foo"); // { dg-error "asm" } 11 int k; // { dg-error "uninitialized" } 12 A a; // { dg-error "non-literal" } 13 return i; 14 } 15 16 // FIXME remove 17 // { dg-prune-output "return" } 18