aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/dllimport-dllexport.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/dllimport-dllexport.c')
-rw-r--r--test/CodeGen/dllimport-dllexport.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/dllimport-dllexport.c b/test/CodeGen/dllimport-dllexport.c
new file mode 100644
index 000000000000..fe49ae7a32af
--- /dev/null
+++ b/test/CodeGen/dllimport-dllexport.c
@@ -0,0 +1,7 @@
+// RUN: clang-cc -emit-llvm < %s -o %t &&
+// RUN: grep 'dllexport' %t | count 1 &&
+// RUN: not grep 'dllimport' %t
+
+void __attribute__((dllimport)) foo1();
+void __attribute__((dllexport)) foo1(){}
+void __attribute__((dllexport)) foo2();