Debian Codegraph @

clang_delta/tests/instantiate-template-param/test2.cc

raw symbols SCIP
1 // RUN: %clang_delta --transformation=instantiate-template-param --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s
2
3 template<typename T> class A {
4 public:
5 template<typename T1> struct C {
6 typedef A other;
7 };
8 };
9 template<typename T1, typename T2> class B {
10 typedef typename T2::template C<int>::other type;
11 };
12 class B<char, A<char> >;
13
14 // CHECK: template<typename T> class A {
15 // CHECK: public:
16 // CHECK: template<typename T1> struct C {
17 // CHECK: typedef A other;
18 // CHECK: };
19 // CHECK: };
20 // CHECK: template<typename T1, typename T2> class B {
21 // CHECK: typedef typename A<char>::template C<int>::other type;
22 // CHECK: };
23 // CHECK: class B<char, A<char> >;
24