From: Rafael Espindola Date: Tue, 5 Nov 2013 06:44:57 +0000 (+0000) Subject: Add a testcase from the recent bootstrap failure. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f88f10ab6ea77c8091f2197b94cc90a949e105ef;p=clang Add a testcase from the recent bootstrap failure. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194049 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/destructors.cpp b/test/CodeGenCXX/destructors.cpp index 0030aae92e..f0780bd584 100644 --- a/test/CodeGenCXX/destructors.cpp +++ b/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 opt : public Option {}; + template class opt; + bool handleOccurrence() { + Option x; + return true; + } +} + // Checks from test3: // CHECK-LABEL: define internal void @_ZN5test312_GLOBAL__N_11DD0Ev(%"struct.test3::::D"* %this) unnamed_addr