summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/undefined-inline.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-05-22 20:45:53 +0000
committerHans Wennborg <hans@hanshq.net>2014-05-22 20:45:53 +0000
commit5ebffb5555cf3e1e4fa53e481b0dcce18707a280 (patch)
tree342145107eab8a73c47974d89ef96d9d723b2c56 /clang/test/SemaCXX/undefined-inline.cpp
parente1f62eca2d73f0a874a84202539578425ebd7b22 (diff)
downloadbcm5719-llvm-5ebffb5555cf3e1e4fa53e481b0dcce18707a280.tar.gz
bcm5719-llvm-5ebffb5555cf3e1e4fa53e481b0dcce18707a280.zip
Don't warn about undefined inline functions if they're dllexport/import
llvm-svn: 209471
Diffstat (limited to 'clang/test/SemaCXX/undefined-inline.cpp')
-rw-r--r--clang/test/SemaCXX/undefined-inline.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/undefined-inline.cpp b/clang/test/SemaCXX/undefined-inline.cpp
index ad719ae03ab..18973ef8b79 100644
--- a/clang/test/SemaCXX/undefined-inline.cpp
+++ b/clang/test/SemaCXX/undefined-inline.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -triple i686-pc-win32 -verify %s
// PR14993
namespace test1 {
@@ -55,3 +55,9 @@ namespace test10 {
void test() { foo(); }
inline void foo() __attribute__((gnu_inline));
}
+
+namespace test11 {
+ inline void foo() __attribute__((dllexport));
+ inline void bar() __attribute__((dllimport));
+ void test() { foo(); bar(); }
+}
OpenPOWER on IntegriCloud