diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-05-22 10:22:18 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-05-22 10:22:18 +0000 |
commit | f5cc7ac4d553942b3e717789fda4271ee17ca6da (patch) | |
tree | 0ab0fdd2198b4e6610812a12963f8b840a0e629b /clang/test/Parser/cxx-template-decl.cpp | |
parent | dfc2e57137396092c1070af1df8c7bd573678e53 (diff) | |
download | bcm5719-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.cpp | 5 |
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; +} |