gcc/testsuite/g++.dg/modules/tpl-spec-9_a.C
raw| 1 | // PR c++/116364 |
| 2 | // { dg-additional-options "-fmodules-ts -Wno-global-module" } |
| 3 | // { dg-module-cmi foo:part } |
| 4 | |
| 5 | module; |
| 6 | template <typename> struct S {}; |
| 7 | template <> struct S<int> |
| 8 | { static constexpr bool value = true; }; |
| 9 | export module foo:part; |
| 10 | |
| 11 | export template <typename T> |
| 12 | constexpr bool result = S<T>::value; |