summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-24 04:29:27 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-24 04:29:27 +0000
commit13ab2a417d8394cc0180ad5805e46ec935e65c06 (patch)
treef4b19cd7b08a29ca90911fde0ae34102635498e3
parent243a4c46d887b148195e06d6c6ecfd94727a1424 (diff)
downloadbcm5719-llvm-13ab2a417d8394cc0180ad5805e46ec935e65c06.tar.gz
bcm5719-llvm-13ab2a417d8394cc0180ad5805e46ec935e65c06.zip
Test for the previous commit/crash.
llvm-svn: 148776
-rw-r--r--clang/test/SemaCXX/warn-unreachable.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/warn-unreachable.cpp b/clang/test/SemaCXX/warn-unreachable.cpp
index 3d368759d7a..52da0b922e1 100644
--- a/clang/test/SemaCXX/warn-unreachable.cpp
+++ b/clang/test/SemaCXX/warn-unreachable.cpp
@@ -124,3 +124,11 @@ template <> void funcToSpecialize<int>() {
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() { }
+};
OpenPOWER on IntegriCloud