Skip to content

Commit 64ab6fc

Browse files
committed
[test] update SwiftToCxx unsigned-return-type-no-zext.cpp test to work without noundef
1 parent b1a939f commit 64ab6fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Interop/SwiftToCxx/core/unsigned-return-type-no-zext.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ void test(void *p) {
1313
getEnumTagi32(p);
1414
}
1515

16-
// CHECK: declare noundef{{( zeroext)?}} i8 @_Z12getEnumTagi8Pv(i8* noundef)
17-
// CHECK: declare noundef i32 @_Z13getEnumTagi32Pv(i8* noundef)
16+
// NOTE: it's important to verify that i32 function does not zeroext/signext return value.
17+
18+
// CHECK: declare{{( noundef)?}}{{( zeroext)?}} i8 @_Z12getEnumTagi8Pv(i8* noundef)
19+
// CHECK: declare{{( noundef)?}} i32 @_Z13getEnumTagi32Pv(i8* noundef)

0 commit comments

Comments
 (0)