summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/cxx-dtor
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-03-10 01:41:22 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-03-10 01:41:22 +0000
commitf81340096ddf2b5a75eee94a09ad30a7501ed816 (patch)
treeb3786a40e60f737643a705af917ae285ecf0a903 /clang/test/Modules/Inputs/cxx-dtor
parent63acdfdeb26616dfa1d9657fa666afc9b9440a2a (diff)
downloadbcm5719-llvm-f81340096ddf2b5a75eee94a09ad30a7501ed816.tar.gz
bcm5719-llvm-f81340096ddf2b5a75eee94a09ad30a7501ed816.zip
[modules] Don't clobber a destructor's operator delete when adding another one;
move the operator delete updating into a separate update record so we can cope with updating another module's destructor's operator delete. llvm-svn: 231735
Diffstat (limited to 'clang/test/Modules/Inputs/cxx-dtor')
-rw-r--r--clang/test/Modules/Inputs/cxx-dtor/a.h1
-rw-r--r--clang/test/Modules/Inputs/cxx-dtor/b.h3
-rw-r--r--clang/test/Modules/Inputs/cxx-dtor/module.modulemap2
3 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/cxx-dtor/a.h b/clang/test/Modules/Inputs/cxx-dtor/a.h
new file mode 100644
index 00000000000..023606eb35a
--- /dev/null
+++ b/clang/test/Modules/Inputs/cxx-dtor/a.h
@@ -0,0 +1 @@
+struct X { X(); virtual ~X(); };
diff --git a/clang/test/Modules/Inputs/cxx-dtor/b.h b/clang/test/Modules/Inputs/cxx-dtor/b.h
new file mode 100644
index 00000000000..75958564cc9
--- /dev/null
+++ b/clang/test/Modules/Inputs/cxx-dtor/b.h
@@ -0,0 +1,3 @@
+struct X { X(); virtual ~X(); };
+inline X::~X() {}
+#include "a.h"
diff --git a/clang/test/Modules/Inputs/cxx-dtor/module.modulemap b/clang/test/Modules/Inputs/cxx-dtor/module.modulemap
new file mode 100644
index 00000000000..61578a1865a
--- /dev/null
+++ b/clang/test/Modules/Inputs/cxx-dtor/module.modulemap
@@ -0,0 +1,2 @@
+module a { header "a.h" export * }
+module b { header "b.h" export * }
OpenPOWER on IntegriCloud