Debian Codegraph @

gcc/testsuite/g++.dg/ext/has_nothrow_constructor-3.C

raw
1 // PR c++/89914
2
3 struct A
4 {
5 int i = ; // { dg-error "expected" }
6 // { dg-error "non-static data member" "" { target c++98_only } .-1 }
7 };
8
9 bool b = __has_nothrow_constructor (A);