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 | 6409625011e4a11ff07956ff46a44d6ca4473992 (patch) | |
tree | fca7ea088a3da7d97e46478a12d8ef67e897b13d /test/Parser/cxx-template-decl.cpp | |
parent | 3d8216a9d325e095414302bda7a0af9549f9c40b (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.cpp | 5 |
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; +} |