aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/diagnostic/ref1.C
blob: 36368ded018e990b2db2a56758c9ee13afaa636e (plain)
1
2
3
4
5
6
7
// PR c++/20332

struct bar {};
void foo1() {
  bar& b = bar();		// { dg-error "rvalue" }
}
void foo(bar& b = bar()) {}	// { dg-error "rvalue" }