Debian Codegraph @

gcc/testsuite/g++.dg/concepts/fn-generic-member-ool.C

raw
1 // { dg-do compile { target c++14 } }
2 // { dg-additional-options "-fconcepts" }
3
4 struct A {
5 void f(auto x);
6 };
7
8 void A::f(auto x) {} // injects a new list
9
10 template <typename T>
11 struct B {
12 void f(auto x);
13 };
14
15 template <typename T>
16 void B<T>::f(auto x) {} // injects a new list
17
18 struct C {
19 template <int N>
20 void f(auto x);
21 };
22
23 template <int N>
24 void C::f(auto x) {} // extends existing inner list
25
26 template <typename T>
27 struct D
28 {
29 template <int N>
30 void f(auto x);
31 };
32
33 template <typename T>
34 template <int N>
35 void D<T>::f(auto x) {} // extends existing inner list