Debian Codegraph @

clang_delta/tests/remove-unused-function/const.cc

raw symbols SCIP
1 // RUN: %clang_delta --transformation=remove-unused-function --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-FIRST
2 // RUN: %clang_delta --transformation=remove-unused-function --counter=2 %s 2>&1 | %remove_lit_checks | FileCheck %s -check-prefix=CHECK-SECOND
3
4 struct S {
5 template <typename T>
6 void foo() const;
7 template <typename T>
8 int operator+(int a) const;
9 };
10
11 // CHECK-FIRST: struct S {
12 // CHECK-FIRST-NEXT: {{^ *; *}}
13 // CHECK-FIRST-NEXT: template <typename T>
14 // CHECK-FIRST-NEXT: int operator+(int a) const;
15 // CHECK-FIRST-NEXT: };
16
17 // CHECK-SECOND: struct S {
18 // CHECK-SECOND-NEXT: template <typename T>
19 // CHECK-SECOND-NEXT: void foo() const;
20 // CHECK-SECOND-NEXT: {{^ *; *}}
21 // CHECK-SECOND-NEXT: };