aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/constexpr-decl.C
blob: 0a3fcb6562337bf30366ebcf3d07f7cfa4cdc00b (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/46930
// { dg-options -std=c++0x }

struct S {
  static constexpr int size;	// { dg-error "must have an initializer" }
  // { dg-error "previous declaration" "" { target *-*-* } 5 }
};

const int limit = 2 * S::size;
constexpr int S::size = 256;	// { dg-error "" }