gcc/testsuite/g++.dg/modules/friend-4_b.C
raw| 1 | // { dg-additional-options -fmodules-ts } |
| 2 | |
| 3 | import foo; |
| 4 | |
| 5 | using namespace bob; |
| 6 | |
| 7 | void doit () |
| 8 | { |
| 9 | corge (); |
| 10 | foo (); |
| 11 | bar (); |
| 12 | |
| 13 | grault (); // { dg-error "not declared" } |
| 14 | toto (); // { dg-error "not declared" } |
| 15 | xyzzy (); // { dg-error "not declared" } |
| 16 | |
| 17 | xyzzy (getR); // ADL |
| 18 | xyzzy (Q{}); // ADL |
| 19 | } |