We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d34e086 commit a1907f4Copy full SHA for a1907f4
test/Interop/SwiftToCxx/core/unsigned-return-type-no-zext.cpp
@@ -0,0 +1,14 @@
1
+// RUN: %empty-directory(%t)
2
+// RUN: %target-interop-build-clangxx -c %s -I %t -S -emit-llvm -o %t/ir.ll
3
+// RUN: %FileCheck %s < %t/ir.ll
4
+
5
+unsigned char getEnumTagi8(void *p);
6
+unsigned getEnumTagi32(void *p);
7
8
+void test(void *p) {
9
+ getEnumTagi8(p);
10
+ getEnumTagi32(p);
11
+}
12
13
+// CHECK: declare zeroext i8 @_Z12getEnumTagi8Pv(i8*) #1
14
+// CHECK: declare i32 @_Z13getEnumTagi32Pv(i8*) #1
0 commit comments