aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/pr60064.C
blob: b82b560d1f5801af41dc5ebc454663ebbd12238c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR c++/60064
// { dg-do compile { target c++14 } }
// { dg-additional-options "-fconcepts" }

class A
{
  int m;
  friend void foo (auto) {}
  friend void foo2 (auto);
};

void foo2 (auto i)
{
  A a;
  a.m = i;
}

int main ()
{
  foo2 (7);
}