]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/pr78890-1.C
Regenerate riscv.opt.urls and i386.opt.urls
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr78890-1.C
CommitLineData
962c5679
JJ
1// PR c++/78890
2// { dg-do compile { target c++11 } }
3
4int
5main()
6{
7 union {
8 int a;
9 int &b = a; // { dg-error "may not have reference type" }
10 };
11 a = 1;
12 auto c = b + 1;
13}