summaryrefslogtreecommitdiff
path: root/test/Sema/swift-call-conv.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/swift-call-conv.c')
-rw-r--r--test/Sema/swift-call-conv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Sema/swift-call-conv.c b/test/Sema/swift-call-conv.c
new file mode 100644
index 0000000000000..755c18f5183f8
--- /dev/null
+++ b/test/Sema/swift-call-conv.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple aarch64-unknown-windows-msvc -fsyntax-only %s -verify
+// RUN: %clang_cc1 -triple thumbv7-unknown-windows-msvc -fsyntax-only %s -verify
+// RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -fsyntax-only %s -verify
+
+// expected-no-diagnostics
+
+void __attribute__((__swiftcall__)) f(void) {}