aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-decl.C
blob: 2c88fe689ea3bb93cbf2bdd7143ba5cdb2787594 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/46930
// { dg-do compile { target c++11 } }

struct S {
  static constexpr int size;	// { dg-error "must have an initializer" "must have" }
};

const int limit = 2 * S::size;
constexpr int S::size = 256;