| 1 |
// { dg-additional-options "-fmodules-ts -fno-inline" } |
| 2 |
|
| 3 |
import Foo; |
| 4 |
import Bar; |
| 5 |
import Baz; |
| 6 |
|
| 7 |
// We know Bar imports Foo, so only call Bar's Global Init |
| 8 |
// { dg-final { scan-assembler {call[ \t]+_?_ZGIW3Bar} { target i?86-*-* x86_64-*-* } } } |
| 9 |
// { dg-final { scan-assembler-not {call[ \t]+_?_ZGIW3Foo} { target i?86-*-* x86_64-*-* } } } |
| 10 |
// We know Baz has a nop init, so don't call it. |
| 11 |
// { dg-final { scan-assembler-not {call[ \t]+_?_ZGIW3Baz} { target i?86-*-* x86_64-*-* } } } |