gcc/testsuite/g++.dg/modules/inst-6_b.C
raw| 1 | // PR c++/122421 |
| 2 | // { dg-additional-options "-fmodules" } |
| 3 | |
| 4 | import M; |
| 5 | |
| 6 | int main() { |
| 7 | const int& a = Type<int>::arr[0]; |
| 8 | const int& b = Type<double>::arr[0]; |
| 9 | } |
| 10 | |
| 11 | // { dg-final { scan-assembler {_ZNW1M4TypeIiE3arrE:} } } |
| 12 | // { dg-final { scan-assembler-not {_ZNW1M4TypeIdE3arrE:} } } |