Skip to content

Commit ed7ced5

Browse files
committed
Use CHECK-LABEL by breaking up the check line into 2.
1 parent a9345a7 commit ed7ced5

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

clang/test/CodeGen/call-graph-section.c

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,33 @@
66
// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fexperimental-call-graph-section \
77
// RUN: -emit-llvm -o - %s | FileCheck --check-prefixes=CHECK,MS %s
88

9-
// CHECK-DAG: define {{(dso_local)?}} void @foo({{.*}} !type [[F_TVOID:![0-9]+]]
9+
// CHECK-LABEL: define {{(dso_local)?}} void @foo(
10+
// CHECK: {{.*}} !type [[F_TVOID:![0-9]+]]
1011
void foo() {
1112
}
1213

13-
// CHECK-DAG: define {{(dso_local)?}} void @bar({{.*}} !type [[F_TVOID]]
14+
// CHECK-LABEL: define {{(dso_local)?}} void @bar(
15+
// CHECK: {{.*}} !type [[F_TVOID]]
1416
void bar() {
1517
void (*fp)() = foo;
1618
// CHECK: call {{.*}}, !callee_type [[F_TVOID_CT:![0-9]+]]
1719
fp();
1820
}
1921

20-
// CHECK-DAG: define {{(dso_local)?}} i32 @baz({{.*}} !type [[F_TPRIMITIVE:![0-9]+]]
22+
// CHECK-LABEL: define {{(dso_local)?}} i32 @baz(
23+
// CHECK: {{.*}} !type [[F_TPRIMITIVE:![0-9]+]]
2124
int baz(char a, float b, double c) {
2225
return 1;
2326
}
2427

25-
// CHECK-DAG: define {{(dso_local)?}} ptr @qux({{.*}} !type [[F_TPTR:![0-9]+]]
28+
// CHECK-LABEL: define {{(dso_local)?}} ptr @qux(
29+
// CHECK: {{.*}} !type [[F_TPTR:![0-9]+]]
2630
int *qux(char *a, float *b, double *c) {
2731
return 0;
2832
}
2933

30-
// CHECK-DAG: define {{(dso_local)?}} void @corge({{.*}} !type [[F_TVOID]]
34+
// CHECK-LABEL: define {{(dso_local)?}} void @corge(
35+
// CHECK: {{.*}} !type [[F_TVOID]]
3136
void corge() {
3237
int (*fp_baz)(char, float, double) = baz;
3338
// CHECK: call i32 {{.*}}, !callee_type [[F_TPRIMITIVE_CT:![0-9]+]]
@@ -46,10 +51,12 @@ struct st2 {
4651
struct st1 m;
4752
};
4853

49-
// CHECK-DAG: define {{(dso_local)?}} void @stparam({{.*}} !type [[F_TSTRUCT:![0-9]+]]
54+
// CHECK-LABEL: define {{(dso_local)?}} void @stparam(
55+
// CHECK: {{.*}} !type [[F_TSTRUCT:![0-9]+]]
5056
void stparam(struct st2 a, struct st2 *b) {}
5157

52-
// CHECK-DAG: define {{(dso_local)?}} void @stf({{.*}} !type [[F_TVOID]]
58+
// CHECK-LABEL: define {{(dso_local)?}} void @stf(
59+
// CHECK: {{.*}} !type [[F_TVOID]]
5360
void stf() {
5461
struct st1 St1;
5562
St1.fp = qux;

0 commit comments

Comments
 (0)