Skip to content

Commit baac27d

Browse files
committed
update test case for windows
1 parent be01f28 commit baac27d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// RUN: %empty-directory(%t)
2+
3+
// RUN: %target-interop-build-clangxx -c %s -I %t -S -emit-llvm -o %t/ir.ll
4+
// RUN: %FileCheck %s < %t/ir.ll
5+
6+
// REQUIRES: OS=windows-msvc
7+
8+
unsigned char getEnumTagi8(void *p);
9+
unsigned getEnumTagi32(void *p);
10+
11+
void test(void *p) {
12+
getEnumTagi8(p);
13+
getEnumTagi32(p);
14+
}
15+
16+
// CHECK: declare dso_local noundef i8 @"?getEnumTagi8@@YAEPEAX@Z"(i8* noundef) #1
17+
// CHECK: declare dso_local noundef i32 @"?getEnumTagi32@@YAIPEAX@Z"(i8* noundef) #1

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// RUN: %empty-directory(%t)
2+
23
// RUN: %target-interop-build-clangxx -c %s -I %t -S -emit-llvm -o %t/ir.ll
34
// RUN: %FileCheck %s < %t/ir.ll
45

6+
// UNSUPPORTED: OS=windows-msvc
7+
58
unsigned char getEnumTagi8(void *p);
69
unsigned getEnumTagi32(void *p);
710

0 commit comments

Comments
 (0)