Debian Codegraph @

clang_delta/tests/reduce-class-template-param/partial4.cc

raw symbols SCIP
1 // RUN: %clang_delta --transformation=reduce-class-template-param --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-FIRST
2 // RUN: %clang_delta --transformation=reduce-class-template-param --counter=2 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-SECOND
3 // RUN: %clang_delta --transformation=reduce-class-template-param --counter=3 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-THIRD
4 // RUN: %clang_delta --transformation=reduce-class-template-param --counter=4 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-FOURTH
5
6 template<bool , typename>
7 struct AAA { };
8 template<typename T>
9 struct AAA<true, T *>
10 { };
11 template<typename, typename>
12 struct BBB {};
13 template<typename T>
14 struct BBB<T &, struct AAA<true, unsigned int> > {};
15
16 // CHECK-FIRST: template< typename>
17 // CHECK-FIRST: struct AAA { };
18 // CHECK-FIRST: template<typename T>
19 // CHECK-FIRST: struct AAA< T *>
20 // CHECK-FIRST: { };
21 // CHECK-FIRST: template<typename, typename>
22 // CHECK-FIRST: struct BBB {};
23 // CHECK-FIRST: template<typename T>
24 // CHECK-FIRST: struct BBB<T &, struct AAA< unsigned int> > {};
25
26 // CHECK-SECOND: template<bool >
27 // CHECK-SECOND: struct AAA { };
28 // CHECK-SECOND: template<>
29 // CHECK-SECOND: struct AAA<true>
30 // CHECK-SECOND: { };
31 // CHECK-SECOND: template<typename, typename>
32 // CHECK-SECOND: struct BBB {};
33 // CHECK-SECOND: template<typename T>
34 // CHECK-SECOND: struct BBB<T &, struct AAA<true> > {};
35
36 // CHECK-THIRD: template<bool , typename>
37 // CHECK-THIRD: struct AAA { };
38 // CHECK-THIRD: template<typename T>
39 // CHECK-THIRD: struct AAA<true, T *>
40 // CHECK-THIRD: { };
41 // CHECK-THIRD: template< typename>
42 // CHECK-THIRD: struct BBB {};
43 // CHECK-THIRD: template<>
44 // CHECK-THIRD: struct BBB< struct AAA<true, unsigned int> > {};
45
46 // CHECK-FOURTH: template<bool , typename>
47 // CHECK-FOURTH: struct AAA { };
48 // CHECK-FOURTH: template<typename T>
49 // CHECK-FOURTH: struct AAA<true, T *>
50 // CHECK-FOURTH: { };
51 // CHECK-FOURTH: template<typename>
52 // CHECK-FOURTH: struct BBB {};
53 // CHECK-FOURTH: template<typename T>
54 // CHECK-FOURTH: struct BBB<T & > {};
55