[cfe-commits] r148776 - /cfe/trunk/test/SemaCXX/warn-unreachable.cpp

David Blaikie dblaikie at gmail.com
Mon Jan 23 20:29:27 PST 2012


Author: dblaikie
Date: Mon Jan 23 22:29:27 2012
New Revision: 148776

URL: http://llvm.org/viewvc/llvm-project?rev=148776&view=rev
Log:
Test for the previous commit/crash.

Modified:
    cfe/trunk/test/SemaCXX/warn-unreachable.cpp

Modified: cfe/trunk/test/SemaCXX/warn-unreachable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-unreachable.cpp?rev=148776&r1=148775&r2=148776&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-unreachable.cpp (original)
+++ cfe/trunk/test/SemaCXX/warn-unreachable.cpp Mon Jan 23 22:29:27 2012
@@ -124,3 +124,11 @@
   halt();
   dead(); // expected-warning {{will never be executed}}
 }
+
+// Ensure we don't regress a fix involving undefined bases to template
+// destructors when computing the CFG for unreachable code analysis
+template<int> struct imp;
+template<int a>
+struct aligned_storage : imp<a> {
+ ~aligned_storage() { }
+};





More information about the cfe-commits mailing list