Skip to content

Commit a84a6f7

Browse files
committed
Fix this _Countof test for 32 vs 64-bits
This should address the issues found by: https://lab.llvm.org/buildbot/#/builders/154/builds/14958
1 parent 4bd9b9e commit a84a6f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/C/C2y/n3369_2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55

66
typedef typeof(sizeof(0)) size_t;
77

8-
// CHECK-LABEL: define{{( dso_local)?}} i64 @test1(
8+
// CHECK-LABEL: define{{( dso_local)?}} i{{64|32}} @test1(
99
// CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
1010
// CHECK-NEXT: [[ENTRY:.*:]]
1111
// CHECK-NEXT: [[ARRAY:%.*]] = alloca [12 x i32], align
12-
// CHECK-NEXT: ret i64 12
12+
// CHECK-NEXT: ret i{{64|32}} 12
1313
//
1414
size_t test1() {
1515
int array[12];
1616
return _Countof(array);
1717
}
1818

19-
// CHECK-LABEL: define{{( dso_local)?}} i64 @test2(
19+
// CHECK-LABEL: define{{( dso_local)?}} i{{64|32}} @test2(
2020
// CHECK-SAME: ) #[[ATTR0]] {
2121
// CHECK-NEXT: [[ENTRY:.*:]]
22-
// CHECK-NEXT: ret i64 100
22+
// CHECK-NEXT: ret i{{64|32}} 100
2323
//
2424
size_t test2() {
2525
return _Countof(float[100]);

0 commit comments

Comments
 (0)