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/Sema/exprs.c | |
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/Sema/exprs.c')
-rw-r--r-- | clang/test/Sema/exprs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/exprs.c b/clang/test/Sema/exprs.c index f85e2fc4141..3fd1437da88 100644 --- a/clang/test/Sema/exprs.c +++ b/clang/test/Sema/exprs.c @@ -79,7 +79,7 @@ void test10(int n,...) { struct mystruct {int A; }; void test11(struct mystruct P, float F) { - MYMAX(P, F); // expected-error {{invalid operands to binary expression ('typeof(P)' (aka 'struct mystruct') and 'typeof(F)' (aka 'float'))}} + MYMAX(P, F); // expected-error {{invalid operands to binary expression ('typeof (P)' (aka 'struct mystruct') and 'typeof (F)' (aka 'float'))}} } // PR3753 |