c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-pr60064.C
blobb82b560d1f5801af41dc5ebc454663ebbd12238c
1 // PR c++/60064
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-fconcepts" }
5 class A
7   int m;
8   friend void foo (auto) {}
9   friend void foo2 (auto);
12 void foo2 (auto i)
14   A a;
15   a.m = i;
18 int main ()
20   foo2 (7);