summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/dllimport-members.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2016-09-13 21:08:20 +0000
committerHans Wennborg <hans@hanshq.net>2016-09-13 21:08:20 +0000
commit3a10548d229142f4ba8ebc662e5fd4270ea680c8 (patch)
tree362a343b0a4a5513f90cc56016e5ee1629d4411e /test/CodeGenCXX/dllimport-members.cpp
parentec0b188c06387c03d2c5c138efe1f47e8b678499 (diff)
Try harder to not inline dllimport functions referencing non-dllimport functions
In r246338, code was added to check for this, but it failed to take into account implicit destructor invocations because those are not reflected in the AST. This adds a separate check for them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/dllimport-members.cpp')
-rw-r--r--test/CodeGenCXX/dllimport-members.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/dllimport-members.cpp b/test/CodeGenCXX/dllimport-members.cpp
index 1fed1bf0ac..19d9e1dfe7 100644
--- a/test/CodeGenCXX/dllimport-members.cpp
+++ b/test/CodeGenCXX/dllimport-members.cpp
@@ -44,7 +44,7 @@ void useSpecials() {
}
// Used to force non-trivial special members.
-struct ForceNonTrivial {
+struct __declspec(dllimport) ForceNonTrivial {
ForceNonTrivial();
~ForceNonTrivial();
ForceNonTrivial(const ForceNonTrivial&);