summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/dllimport.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2017-02-15 23:28:07 +0000
committerHans Wennborg <hans@hanshq.net>2017-02-15 23:28:07 +0000
commit6c3d625fd98a517228f829383acdd04df3e8e499 (patch)
treeb7a40a0a2835e58895e6701fd1733ff092e3d9fb /clang/test/CodeGenCXX/dllimport.cpp
parenta2111793bb08ff9cbf81d8bba7e1eedda02887e9 (diff)
downloadbcm5719-llvm-6c3d625fd98a517228f829383acdd04df3e8e499.tar.gz
bcm5719-llvm-6c3d625fd98a517228f829383acdd04df3e8e499.zip
[dllimport] Look through typedefs and arrays in HasNonDllImportDtor
The function is used to check whether a type is a class with non-dllimport destructor. It needs to look through typedefs and array types. llvm-svn: 295257
Diffstat (limited to 'clang/test/CodeGenCXX/dllimport.cpp')
-rw-r--r--clang/test/CodeGenCXX/dllimport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/dllimport.cpp b/clang/test/CodeGenCXX/dllimport.cpp
index 944c366f88e..731239e5eda 100644
--- a/clang/test/CodeGenCXX/dllimport.cpp
+++ b/clang/test/CodeGenCXX/dllimport.cpp
@@ -358,7 +358,7 @@ __declspec(dllimport) inline int *ReferencingImportedDelete() { delete (int*)nul
USE(ReferencingImportedNew)
USE(ReferencingImportedDelete)
struct ClassWithDtor { ~ClassWithDtor() {} };
-struct __declspec(dllimport) ClassWithNonDllImportField { ClassWithDtor t; };
+struct __declspec(dllimport) ClassWithNonDllImportField { using X = ClassWithDtor; X t[2]; };
struct __declspec(dllimport) ClassWithNonDllImportBase : public ClassWithDtor { };
USECLASS(ClassWithNonDllImportField);
USECLASS(ClassWithNonDllImportBase);
OpenPOWER on IntegriCloud