summaryrefslogtreecommitdiffstats
path: root/clang/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
commitf5cc7ac4d553942b3e717789fda4271ee17ca6da (patch)
tree0ab0fdd2198b4e6610812a12963f8b840a0e629b /clang/test/Parser/cxx-template-decl.cpp
parentdfc2e57137396092c1070af1df8c7bd573678e53 (diff)
downloadbcm5719-llvm-f5cc7ac4d553942b3e717789fda4271ee17ca6da.tar.gz
bcm5719-llvm-f5cc7ac4d553942b3e717789fda4271ee17ca6da.zip
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; llvm-svn: 72255
Diffstat (limited to 'clang/test/Parser/cxx-template-decl.cpp')
-rw-r--r--clang/test/Parser/cxx-template-decl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp
index 6a795eeabe4..ae5d8f9e0cc 100644
--- a/clang/test/Parser/cxx-template-decl.cpp
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud