Debian Codegraph @

gcc/testsuite/g++.dg/concepts/abbrev10.C

raw
1 // PR c++/99806
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-fconcepts" }
4
5 struct S {
6 void f(auto, auto, int = 3);
7 void f2(auto, auto, int = 3) { }
8 template<typename T> static T g(T, auto, int = 3);
9 };
10
11 void
12 g ()
13 {
14 S::g(1, 2);
15 S s;
16 s.f(1, 2);
17 s.f2(1, 2);
18 }