gcc/testsuite/g++.dg/modules/unnamed-1_a.C
raw| 1 | // { dg-additional-options "-fmodules-ts -fdump-lang-module" } |
| 2 | |
| 3 | export module PiL; |
| 4 | // { dg-module-cmi PiL } |
| 5 | |
| 6 | int counter = 0; |
| 7 | |
| 8 | export inline int get () |
| 9 | { |
| 10 | return counter++; |
| 11 | } |
| 12 | |
| 13 | export inline int hwm () |
| 14 | { |
| 15 | return counter; |
| 16 | } |
| 17 | |
| 18 | // { dg-final { scan-lang-dump {Bindings '::counter' section:1} module } } |
| 19 | // { dg-final { scan-lang-dump-not {horcrux} module } } |
| 20 | // { dg-final { scan-lang-dump-not {Unnamed . '::counter'} module } } |