@@ -2,9 +2,8 @@ volatile int x;
22
33void __attribute__ ((noinline)) tail_call_sink() {
44 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]
87 // TAIL-CALL-SINK-NEXT: main{{.*}}
98}
109
@@ -16,12 +15,15 @@ void __attribute__((noinline)) func3() {
1615 inlinable_function_which_tail_calls ();
1716}
1817
18+ // clang-format off
1919void __attribute__ ((always_inline)) inline_sink() {
2020 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{{.*}}
2425}
26+ // clang-format on
2527
2628void __attribute__ ((noinline)) func2() { inline_sink (); /* inlined */ }
2729
0 commit comments