| 1 |
// PR c++/118049 |
| 2 |
// { dg-additional-options "-fmodules -Wno-global-module" } |
| 3 |
// { dg-module-cmi B } |
| 4 |
|
| 5 |
module; |
| 6 |
template <typename T> struct S { |
| 7 |
auto foo() {} |
| 8 |
}; |
| 9 |
template struct S<char>; |
| 10 |
export module B; |
| 11 |
import A; |
| 12 |
template <typename> void x() { |
| 13 |
S<char>{}.foo(); |
| 14 |
} |