gcc/testsuite/g++.dg/modules/pr122922_a.C
raw| 1 | // PR c++/122922 |
| 2 | // { dg-additional-options "-fmodules" } |
| 3 | // { dg-module-cmi VF } |
| 4 | |
| 5 | export module VF; |
| 6 | |
| 7 | template <int N> struct TTensor { |
| 8 | friend void foo(TTensor) {} |
| 9 | TTensor<N - 1> TensorArr[1]; |
| 10 | }; |
| 11 | |
| 12 | template <> struct TTensor<0> { |
| 13 | friend void foo(TTensor) {} |
| 14 | }; |
| 15 | |
| 16 | template <typename T = void> void TCampo() { |
| 17 | foo(TTensor<1>()); |
| 18 | } |