gcc/testsuite/g++.dg/modules/lang-3_a.C
raw| 1 | // { dg-additional-options "-fmodules-ts -Wno-pedantic" } |
| 2 | module; |
| 3 | # 4 __FILE__ 1 |
| 4 | void Quux (); |
| 5 | # 6 "" 2 |
| 6 | export module bob; |
| 7 | // { dg-module-cmi bob } |
| 8 | |
| 9 | extern "C++" |
| 10 | { |
| 11 | export void Bar () {} |
| 12 | export void Quux (); |
| 13 | void Baz () {} |
| 14 | } |
| 15 | |
| 16 | // { dg-final { scan-assembler {_Z3Barv:} } } |
| 17 | // { dg-final { scan-assembler {_Z3Bazv:} } } |