aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-template-argument.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-11 00:33:19 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-11 00:33:19 +0000
commitbc61bd8109d9accf8f966b59e3f16a1497e72adf (patch)
treed016f4d80701b35e17f8d8a4f0e82941b57a1bd9 /test/Parser/cxx-template-argument.cpp
parentb1fd0eb8abe0b972ab793edab1d6f5e976217178 (diff)
When we're inside a functional cast, '>' is an operator. Fixes PR8912.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123201 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-template-argument.cpp')
-rw-r--r--test/Parser/cxx-template-argument.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Parser/cxx-template-argument.cpp b/test/Parser/cxx-template-argument.cpp
index 532b4c9894..c85b1c9281 100644
--- a/test/Parser/cxx-template-argument.cpp
+++ b/test/Parser/cxx-template-argument.cpp
@@ -7,3 +7,6 @@ template<typename T> struct A {};
A<int+> int x; // expected-error {{expected '>'}} expected-error {{expected unqualified-id}}
A<int x; // expected-error {{expected '>'}}
+// PR8912
+template <bool> struct S {};
+S<bool(2 > 1)> s;