summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2010-02-16 18:27:26 +0000
committerCharles Davis <cdavis@mines.edu>2010-02-16 18:27:26 +0000
commit163855f46d4a226239e05dd90b0ee9542fed9406 (patch)
treeadc4e08a669c1ef2aa637c31d55f60923d98ef4f /clang/test/CodeGen
parente983eae273b26de2d6efd98e3926ee2375262776 (diff)
downloadbcm5719-llvm-163855f46d4a226239e05dd90b0ee9542fed9406.tar.gz
bcm5719-llvm-163855f46d4a226239e05dd90b0ee9542fed9406.zip
dllimport and dllexport are declspec attributes, too. They're also
Win32-specific. Also, fix a test to use FileCheck instead of grepping LLVM IR. llvm-svn: 96364
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/dllimport-dllexport.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/test/CodeGen/dllimport-dllexport.c b/clang/test/CodeGen/dllimport-dllexport.c
index c7c2420ea77..c187503c5cf 100644
--- a/clang/test/CodeGen/dllimport-dllexport.c
+++ b/clang/test/CodeGen/dllimport-dllexport.c
@@ -1,7 +1,12 @@
-// RUN: %clang_cc1 -emit-llvm < %s -o %t
-// RUN: grep 'dllexport' %t | count 1
-// RUN: not grep 'dllimport' %t
+// RUN: %clang_cc1 -triple i386-mingw32 -emit-llvm < %s | FileCheck %s
void __attribute__((dllimport)) foo1();
void __attribute__((dllexport)) foo1(){}
+// CHECK: define dllexport void @foo1
void __attribute__((dllexport)) foo2();
+
+// PR6269
+__declspec(dllimport) void foo3();
+__declspec(dllexport) void foo3(){}
+// CHECK: define dllexport void @foo3
+__declspec(dllexport) void foo4();
OpenPOWER on IntegriCloud