Debian Codegraph @

gcc/testsuite/g++.dg/modules/dguide-2_b.C

raw
1 // PR c++/115231
2 // { dg-additional-options "-fmodules-ts" }
3
4 import M;
5
6 template <typename>
7 struct U;
8
9 template <template <typename> typename TT, typename Inner>
10 struct U<TT<Inner>> {
11 void go() {
12 TT t(10);
13 }
14 };
15
16 int main() {
17 U<decltype(f())>{}.go();
18 U<decltype(g())>{}.go();
19 }