aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-union4.C
blob: c21fdcaed5b828920bd4e1f01483cc127f342188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/59269
// { dg-require-effective-target c++11 }

union U
{
  int& i = 0;  // { dg-error "reference" }
};

void foo()
{
  U();
}