]> granicus.if.org Git - clang/commitdiff
Add a testcase from the recent bootstrap failure.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 5 Nov 2013 06:44:57 +0000 (06:44 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 5 Nov 2013 06:44:57 +0000 (06:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194049 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/destructors.cpp

index 0030aae92edd4353870d2e294d40743042dd31ea..f0780bd584793d16c37dae57d3347a835ae20314 100644 (file)
@@ -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