gcc/testsuite/g++.dg/modules/inst-6_a.C
raw| 1 | // PR c++/122421 |
| 2 | // { dg-additional-options "-fmodules" } |
| 3 | // { dg-module-cmi M } |
| 4 | |
| 5 | export module M; |
| 6 | |
| 7 | export template <typename T> struct Type { |
| 8 | static const int arr[3]; |
| 9 | }; |
| 10 | |
| 11 | extern template const int Type<double>::arr[3]; |
| 12 | template <typename T> const int Type<T>::arr[] = { 42, 43, 44 }; |
| 13 | |
| 14 | export Type<int> ti; |