summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-11-20 01:24:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-11-20 01:24:12 +0000
commit5b555da775b66705801e4cf5cfc22ddfa94bca37 (patch)
tree026e407d31b1ab8ab3ecad1d033120a2d7e64566 /clang/test
parentac00643603f68b0d99dd18105ccf4d4ea6e4fbf7 (diff)
downloadbcm5719-llvm-5b555da775b66705801e4cf5cfc22ddfa94bca37.tar.gz
bcm5719-llvm-5b555da775b66705801e4cf5cfc22ddfa94bca37.zip
PR21531: fix crash on invalid with unexpanded pack in case value.
llvm-svn: 222400
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
index 8a70db6789b..4f9368f6b60 100644
--- a/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
+++ b/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
@@ -354,6 +354,7 @@ void test_unexpanded_exprs(Types ...values) {
for (auto t : values) { } // expected-error{{expression contains unexpanded parameter pack 'values'}}
switch (values) { } // expected-error{{expression contains unexpanded parameter pack 'values'}}
+ switch (0) { case 0: case values: ; } // expected-error{{expression contains unexpanded parameter pack 'values'}}
do { } while (values); // expected-error{{expression contains unexpanded parameter pack 'values'}}
OpenPOWER on IntegriCloud