aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/pr60064.C
blob: e61704e8ecd9cccd94dc2ba6d2af2ad366a02f48 (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++1y } }
// { 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);
}