Debian Codegraph @

gcc/testsuite/g++.dg/modules/ttp-3_a.C

raw
1 // { dg-additional-options -fmodules-ts }
2
3 export module foo;
4 // { dg-module-cmi foo }
5
6 template<typename Arg1, template<typename> typename Arg2>
7 struct TPL
8 {
9 using type = char;
10 };
11
12 /// Implementation of the detection idiom (positive case).
13 template<template<typename> typename Op>
14 struct TPL <Op<int>, Op>
15 {
16 using type = int;
17 };