c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-pr60390.C
bloba453d1d61a3911d3d15389b44788df29ab1dcc71
1 // PR c++/60390
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-fconcepts" }
5 struct A
7   void foo (auto);
8 };
10 class B
12   int m;
13   friend void A::foo (auto);
16 void A::foo (auto i)
18   B b;
19   b.m = i;
22 int main ()
24   A a;
25   a.foo (7);