Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/pr60943.C

raw
1 // { dg-options "-std=c++14" }
2
3 struct A {
4 auto f() & {}
5 auto f() && {}
6 };
7
8 void Foo (A &a)
9 {
10 a.f();
11 }
12
13 void Bar ()
14 {
15 A{}.f ();
16 }