gcc/testsuite/g++.dg/modules/tpl-friend-13_b.C
raw| 1 | // { dg-additional-options "-fmodules-ts" } |
| 2 | |
| 3 | import M; |
| 4 | |
| 5 | A<int> a; |
| 6 | struct S {}; // { dg-error "conflicts with import" } |
| 7 | template <typename> struct T {}; // { dg-error "conflicts with import" } |
| 8 | |
| 9 | B<int> c; |
| 10 | void f() {} // { dg-error "conflicts with import" } |
| 11 | template <typename> void g() {} // { dg-error "conflicts with import" } |