OSDN Git Service

PR c++/26714
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-decl.C
1 // PR c++/46930
2 // { dg-options -std=c++0x }
3
4 struct S {
5   static constexpr int size;    // { dg-error "must have an initializer" }
6   // { dg-error "previous declaration" "" { target *-*-* } 5 }
7 };
8
9 const int limit = 2 * S::size;
10 constexpr int S::size = 256;    // { dg-error "" }