Debian Codegraph @

clang_delta/tests/reduce-class-template-param/partial3.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 *, unsigned int > {};
15
16 template< typename>
17 struct AAA { };
18
19 // CHECK-FIRST: template<typename T>
20 // CHECK-FIRST: struct AAA< T *>
21 // CHECK-FIRST: { };
22 // CHECK-FIRST: template<typename, typename>
23 // CHECK-FIRST: struct BBB {};
24 // CHECK-FIRST: template<typename T>
25 // CHECK-FIRST: struct BBB<T *, unsigned int > {};
26
27 // CHECK-SECOND: template<bool >
28 // CHECK-SECOND: struct AAA { };
29 // CHECK-SECOND: template<>
30 // CHECK-SECOND: struct AAA<true>
31 // CHECK-SECOND: { };
32 // CHECK-SECOND: template<typename, typename>
33 // CHECK-SECOND: struct BBB {};
34 // CHECK-SECOND: template<typename T>
35 // CHECK-SECOND: struct BBB<T *, unsigned int > {};
36
37 // CHECK-THIRD: template<bool , typename>
38 // CHECK-THIRD: struct AAA { };
39 // CHECK-THIRD: template<typename T>
40 // CHECK-THIRD: struct AAA<true, T *>
41 // CHECK-THIRD: { };
42 // CHECK-THIRD: template< typename>
43 // CHECK-THIRD: struct BBB {};
44 // CHECK-THIRD: template<>
45 // CHECK-THIRD: struct BBB< unsigned int > {};
46
47 // CHECK-FOURTH: template<bool , typename>
48 // CHECK-FOURTH: struct AAA { };
49 // CHECK-FOURTH: template<typename T>
50 // CHECK-FOURTH: struct AAA<true, T *>
51 // CHECK-FOURTH: { };
52 // CHECK-FOURTH: template<typename>
53 // CHECK-FOURTH: struct BBB {};
54 // CHECK-FOURTH: template<typename T>
55 // CHECK-FOURTH: struct BBB<T * > {};
56