summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1y/pr60064.C
blob: add3f05cbbd6d9a8c8c5bd8b21008e542c9ca9dc (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-options "" }

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);
}