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

int i;

constexpr int & iref = i;
constexpr int & irefref = iref;

class A {
  static constexpr int & irefref = iref;
};