summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-77482.C
blob: 6f5c91621cebd2fe413ed3d5dea9e4233e53600e (plain)
1
2
3
4
5
6
// PR c++/77482
// { dg-do compile { target c++11 } }

constexpr auto x;	// { dg-error "declaration\[^\n\r]*has no initializer" }
extern struct S s;
constexpr auto y = s;	// { dg-error "has incomplete type" }