aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-template-decl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-05-22 10:22:18 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-05-22 10:22:18 +0000
commit6409625011e4a11ff07956ff46a44d6ca4473992 (patch)
treefca7ea088a3da7d97e46478a12d8ef67e897b13d /test/Parser/cxx-template-decl.cpp
parent3d8216a9d325e095414302bda7a0af9549f9c40b (diff)
Parse typeof-specifier the same way as sizeof/alignof are parsed.
-Makes typeof consistent with sizeof/alignof -Fixes a bug when '>' is in a typeof expression, inside a template type param: A<typeof(x>1)> a; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-template-decl.cpp')
-rw-r--r--test/Parser/cxx-template-decl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Parser/cxx-template-decl.cpp b/test/Parser/cxx-template-decl.cpp
index 6a795eeabe..ae5d8f9e0c 100644
--- a/test/Parser/cxx-template-decl.cpp
+++ b/test/Parser/cxx-template-decl.cpp
@@ -75,3 +75,8 @@ void f(int& i) {
template<typename T>
const T& min(const T&, const T&);
+
+void f2() {
+ int x;
+ A< typeof(x>1) > a;
+}