summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/destructors.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-11-05 06:44:57 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-11-05 06:44:57 +0000
commit1cc563d5580ac952e7d1a5b4aeaaada076c9d241 (patch)
tree506e35ae38ecf67f62afa5c70c41cdfaaab158a2 /clang/test/CodeGenCXX/destructors.cpp
parentbe79768b6a4f82e00d777d8ca80057bc42bdbcf0 (diff)
downloadbcm5719-llvm-1cc563d5580ac952e7d1a5b4aeaaada076c9d241.tar.gz
bcm5719-llvm-1cc563d5580ac952e7d1a5b4aeaaada076c9d241.zip
Add a testcase from the recent bootstrap failure.
llvm-svn: 194049
Diffstat (limited to 'clang/test/CodeGenCXX/destructors.cpp')
-rw-r--r--clang/test/CodeGenCXX/destructors.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/destructors.cpp b/clang/test/CodeGenCXX/destructors.cpp
index 0030aae92ed..f0780bd5847 100644
--- a/clang/test/CodeGenCXX/destructors.cpp
+++ b/clang/test/CodeGenCXX/destructors.cpp
@@ -364,6 +364,19 @@ namespace test9 {
// CHECK: call void @_ZN5test92f2Ev()
}
+namespace test10 {
+ // Test that we don't crash.
+ struct Option {
+ virtual ~Option() {}
+ };
+ template <class DataType> class opt : public Option {};
+ template class opt<int>;
+ bool handleOccurrence() {
+ Option x;
+ return true;
+ }
+}
+
// Checks from test3:
// CHECK-LABEL: define internal void @_ZN5test312_GLOBAL__N_11DD0Ev(%"struct.test3::<anonymous namespace>::D"* %this) unnamed_addr
OpenPOWER on IntegriCloud