summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-57764.C
blob: b26f4b50449bdbaa8d6f8100ebdeb34622d329d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/57764
// { dg-do compile { target c++11 } }

constexpr int x = 42;
  
struct S
{
  static constexpr int const & y = x;
};

constexpr int const & S::y;