gcc/testsuite/g++.dg/modules/gnu-inline-1_c.C
raw| 1 | // PR c++/119154 |
| 2 | // { dg-additional-options "-fmodules" } |
| 3 | |
| 4 | void bar() {} |
| 5 | void decl() {} |
| 6 | import foo; |
| 7 | |
| 8 | void test_c() { |
| 9 | bar(); |
| 10 | decl(); |
| 11 | }; |
| 12 | |
| 13 | // Make sure importing a gnu_inline definition didn't stop us from emitting |
| 14 | // the non-gnu_inline definition we had before the module import. |
| 15 | // { dg-final { scan-assembler "_Z3barv:" } } |
| 16 | // { dg-final { scan-assembler "_Z4declv:" } } |