r194049 - Add a testcase from the recent bootstrap failure.

Rafael Espindola rafael.espindola at gmail.com
Mon Nov 4 22:44:57 PST 2013


Author: rafael
Date: Tue Nov  5 00:44:57 2013
New Revision: 194049

URL: http://llvm.org/viewvc/llvm-project?rev=194049&view=rev
Log:
Add a testcase from the recent bootstrap failure.

Modified:
    cfe/trunk/test/CodeGenCXX/destructors.cpp

Modified: cfe/trunk/test/CodeGenCXX/destructors.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/destructors.cpp?rev=194049&r1=194048&r2=194049&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/destructors.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/destructors.cpp Tue Nov  5 00:44:57 2013
@@ -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





More information about the cfe-commits mailing list