aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/literal-operators.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-08-03 21:14:57 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-08-03 21:14:57 +0000
commit5295b97d6a0117414a24d319d9a018191ec1d8e3 (patch)
treeef1a6bf1a6cb3a422505dc63a4eb9b56121f7077 /test/SemaCXX/literal-operators.cpp
parent5b978519d2c5f5b4541768a827b675e997d4cd34 (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.cpp1
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}}