diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-24 04:29:27 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-24 04:29:27 +0000 |
commit | 25f4c19fba097e8fa3b6884dbdd1b3571cd72741 (patch) | |
tree | 0e71d09979b4c7cedf6cec0f21a95d7b4c63292c | |
parent | 7154c03b366c4a6d83c086b624af269f779eb7b0 (diff) |
Test for the previous commit/crash.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148776 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaCXX/warn-unreachable.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-unreachable.cpp b/test/SemaCXX/warn-unreachable.cpp index 3d368759d7..52da0b922e 100644 --- a/test/SemaCXX/warn-unreachable.cpp +++ b/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() { } +}; |