gcc/testsuite/g++.dg/modules/export-5_a.C
raw| 1 | // PR c++/114917 |
| 2 | // { dg-additional-options "-fmodules-ts" } |
| 3 | // { dg-module-cmi M } |
| 4 | |
| 5 | export module M; |
| 6 | |
| 7 | export namespace ns { |
| 8 | template <typename T> struct S {}; |
| 9 | template <typename T> struct S<T*> { using a = int; }; |
| 10 | template <> struct S<int*> { using b = int; }; |
| 11 | template struct S<int>; |
| 12 | }; |
| 13 | |
| 14 | export extern "C++" namespace ns { |
| 15 | template <typename T> void foo() {} |
| 16 | template <> void foo<int>() {} |
| 17 | } |