gcc/testsuite/g++.dg/modules/class-8_b.C
raw| 1 | // { dg-additional-options {-fmodules-ts -fdump-lang-module} } |
| 2 | module foo; |
| 3 | |
| 4 | // completes class A from interface |
| 5 | class A |
| 6 | { |
| 7 | }; |
| 8 | |
| 9 | void bill () |
| 10 | { |
| 11 | A a; |
| 12 | } |
| 13 | |
| 14 | // redeclaration of class B{} from interface |
| 15 | class B; |
| 16 | |
| 17 | void bob () |
| 18 | { |
| 19 | B b; |
| 20 | } |
| 21 | |
| 22 | // { dg-final { scan-lang-dump {Lazily binding '::A'@'foo' section:} module } } |
| 23 | // { dg-final { scan-lang-dump {Lazily binding '::B'@'foo' section:} module } } |