summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ref14.C
blob: 212e6e95d7eab4152eb8ed9d949b21eb0b52a855 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/33459

union A
{
  int &i; // { dg-error "may not have reference type" }
};

void foo()
{
  A();
}