summaryrefslogtreecommitdiff
path: root/test/CodeGen/flip-dllimport.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/flip-dllimport.c')
-rw-r--r--test/CodeGen/flip-dllimport.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/flip-dllimport.c b/test/CodeGen/flip-dllimport.c
new file mode 100644
index 0000000000000..d20479d8f6e84
--- /dev/null
+++ b/test/CodeGen/flip-dllimport.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -emit-llvm -o - %s | FileCheck %s
+
+__declspec(dllimport) void f();
+void g() { f(); } // use it
+
+// CHECK: define dso_local dllexport void @f
+void f() { }