| 1 |
// PR c++/124431 |
| 2 |
// { dg-additional-options "-fmodules -fdump-lang-module-alias" } |
| 3 |
|
| 4 |
import C; |
| 5 |
import B; |
| 6 |
|
| 7 |
void test() { |
| 8 |
constexpr auto r = mat<4>()[0]; |
| 9 |
// { dg-final { scan-lang-dump {Read:-[0-9]*'s named merge key \(matched\) field_decl:'::mat@.:.<0x4>::data'} module } } |
| 10 |
|
| 11 |
S<0> s; |
| 12 |
s.field; |
| 13 |
// { dg-final { scan-lang-dump {Read:-[0-9]*'s named merge key \(matched\) field_decl:'::S@.:.<0x0>::field'} module } } |
| 14 |
|
| 15 |
S<0>::e se = S<0>::a; |
| 16 |
// { dg-final { scan-lang-dump {Read:-[0-9]*'s named merge key \(matched\) const_decl:'::S@.:.<0x0>::e@.:.<0x0>::a'} module } } |
| 17 |
|
| 18 |
S<0>::ce sce = S<0>::ce::ca; |
| 19 |
// { dg-final { scan-lang-dump {Read:-[0-9]*'s named merge key \(matched\) const_decl:'::S@.:.<0x0>::ce@.:.<0x0>::ca'} module } } |
| 20 |
} |