gcc/testsuite/g++.dg/modules/tpl-friend-16_b.C
raw| 1 | // PR c++/115801 |
| 2 | // { dg-additional-options "-fmodules-ts" } |
| 3 | |
| 4 | import test; |
| 5 | |
| 6 | int main() { |
| 7 | GMF<int> gmf; |
| 8 | Attached<int> attached; |
| 9 | |
| 10 | int a = test_gmf<double>(); |
| 11 | int b = test_attached<double>(); |
| 12 | |
| 13 | GMF_Hidden<int> gmf_hidden; // { dg-error "not declared" } |
| 14 | Attached_Hidden<int> attached_hidden; // { dg-error "not declared" } |
| 15 | } |
| 16 | |
| 17 | // { dg-prune-output "expected primary-expression" } |