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

#include <initializer_list>

struct A
{
  static constexpr auto b{1.0};
};

constexpr decltype(A::b) A::b;