aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-static8.C
blob: 34aa5afc001206504983eea887bf87331f06afe5 (plain)
1
2
3
4
5
6
7
8
// PR c++/50258
// { dg-do compile { target c++11 } }
// { dg-options "-fpermissive" }

struct Foo {
  static const double d = 3.14; // { dg-warning "constexpr" }
};
const double Foo::d;            // { dg-warning "constexpr" }