diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-11-20 01:24:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-11-20 01:24:12 +0000 |
commit | 5b555da775b66705801e4cf5cfc22ddfa94bca37 (patch) | |
tree | 026e407d31b1ab8ab3ecad1d033120a2d7e64566 /clang/test | |
parent | ac00643603f68b0d99dd18105ccf4d4ea6e4fbf7 (diff) | |
download | bcm5719-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.cpp | 1 |
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'}} |