You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
788 B
26 lines
788 B
4 months ago
|
RUN: llvm-opt-report -r %p %p/Inputs/q3.yaml | FileCheck -strict-whitespace %s
|
||
|
|
||
|
; CHECK: < {{.*[/\]}}q3.c
|
||
|
; CHECK-NEXT: 1 | void bar();
|
||
|
; CHECK-NEXT: 2 | void foo(int n) {
|
||
|
; CHECK-NEXT: {{\[\[}}
|
||
|
; CHECK-NEXT: > foo:
|
||
|
; CHECK-NEXT: 3 | for (int i = 0; i < n; ++i)
|
||
|
; CHECK-NEXT: > quack:
|
||
|
; CHECK-NEXT: 3 U4 | for (int i = 0; i < n; ++i)
|
||
|
; CHECK-NEXT: > quack2:
|
||
|
; CHECK-NEXT: 3 U8 | for (int i = 0; i < n; ++i)
|
||
|
; CHECK-NEXT: {{\]\]}}
|
||
|
; CHECK-NEXT: 4 | bar();
|
||
|
; CHECK-NEXT: 5 | }
|
||
|
; CHECK-NEXT: 6 |
|
||
|
; CHECK-NEXT: 7 | void quack() {
|
||
|
; CHECK-NEXT: 8 I | foo(4);
|
||
|
; CHECK-NEXT: 9 | }
|
||
|
; CHECK-NEXT: 10 |
|
||
|
; CHECK-NEXT: 11 | void quack2() {
|
||
|
; CHECK-NEXT: 12 I | foo(8);
|
||
|
; CHECK-NEXT: 13 | }
|
||
|
; CHECK-NEXT: 14 |
|
||
|
|