@@ -2,9 +2,8 @@ volatile int x;
2
2
3
3
void __attribute__ ((noinline)) tail_call_sink() {
4
4
x++; // % self.filecheck("bt", "main.cpp", "-check-prefix=TAIL-CALL-SINK")
5
- // TAIL-CALL-SINK: frame #0: 0x{{[0-9a-f]+}} a.out`tail_call_sink() at
6
- // main.cpp:[[@LINE-1]]:4 TAIL-CALL-SINK-NEXT:
7
- // inlinable_function_which_tail_calls() at main.cpp{{.*}} [artificial]
5
+ // TAIL-CALL-SINK: frame #0: 0x{{[0-9a-f]+}} a.out`tail_call_sink() at main.cpp:[[@LINE-1]]:4
6
+ // TAIL-CALL-SINK-NEXT: inlinable_function_which_tail_calls() at main.cpp{{.*}} [artificial]
8
7
// TAIL-CALL-SINK-NEXT: main{{.*}}
9
8
}
10
9
@@ -16,12 +15,15 @@ void __attribute__((noinline)) func3() {
16
15
inlinable_function_which_tail_calls ();
17
16
}
18
17
18
+ // clang-format off
19
19
void __attribute__ ((always_inline)) inline_sink() {
20
20
x++; // % self.filecheck("bt", "main.cpp", "-check-prefix=INLINE-SINK")
21
- // INLINE-SINK: frame #0: 0x{{[0-9a-f]+}} a.out`inline_sink() at
22
- // main.cpp:[[@LINE-1]]:4 INLINE-SINK-NEXT: func2{{.*}} INLINE-SINK-NEXT:
23
- // func1{{.*}} [artificial] INLINE-SINK-NEXT: main{{.*}}
21
+ // INLINE-SINK: frame #0: 0x{{[0-9a-f]+}} a.out`inline_sink() at main.cpp:[[@LINE-1]]:4
22
+ // INLINE-SINK-NEXT: func2{{.*}}
23
+ // INLINE-SINK-NEXT: func1{{.*}} [artificial]
24
+ // INLINE-SINK-NEXT: main{{.*}}
24
25
}
26
+ // clang-format on
25
27
26
28
void __attribute__ ((noinline)) func2() { inline_sink (); /* inlined */ }
27
29
0 commit comments