diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-03 21:14:57 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-03 21:14:57 +0000 |
commit | 5295b97d6a0117414a24d319d9a018191ec1d8e3 (patch) | |
tree | ef1a6bf1a6cb3a422505dc63a4eb9b56121f7077 /test/SemaCXX/literal-operators.cpp | |
parent | 5b978519d2c5f5b4541768a827b675e997d4cd34 (diff) |
Fix crash if a literal operator template's template parameter pack is not a non-type template parameter pack. Patch by Andy Gibbs!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/literal-operators.cpp')
-rw-r--r-- | test/SemaCXX/literal-operators.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/SemaCXX/literal-operators.cpp b/test/SemaCXX/literal-operators.cpp index 7f68cd393c..f4c5c35a2b 100644 --- a/test/SemaCXX/literal-operators.cpp +++ b/test/SemaCXX/literal-operators.cpp @@ -41,3 +41,4 @@ void operator "" _cv_good (volatile const char *, const size_t); // expected-err template <char...> void operator "" _good (); // FIXME: Test some invalid decls that might crop up. +template <typename...> void operator "" _invalid(); // expected-error {{parameter declaration for literal operator 'operator "" _invalid' is not valid}} |