diff options
author | Steve Naroff <snaroff@apple.com> | 2008-01-30 21:50:43 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-01-30 21:50:43 +0000 |
commit | 2a2c5b98eef277705cb9f1bf0cf0083507359bb7 (patch) | |
tree | 80c53314c6f7a554b091e1b7ddad48a190885fbc /clang/test/Sema/conditional-expr.c | |
parent | 86b99c1b79d32fa1b763dceef134de85760276ae (diff) | |
download | bcm5719-llvm-2a2c5b98eef277705cb9f1bf0cf0083507359bb7.tar.gz bcm5719-llvm-2a2c5b98eef277705cb9f1bf0cf0083507359bb7.zip |
Fix test case and add a FIXME.
llvm-svn: 46577
Diffstat (limited to 'clang/test/Sema/conditional-expr.c')
-rw-r--r-- | clang/test/Sema/conditional-expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/conditional-expr.c b/clang/test/Sema/conditional-expr.c index c7c6ff242c7..a113adeeb38 100644 --- a/clang/test/Sema/conditional-expr.c +++ b/clang/test/Sema/conditional-expr.c @@ -1,9 +1,10 @@ // RUN: clang -fsyntax-only -verify -pedantic %s void foo() { *(0 ? (double *)0 : (void *)0) = 0; + // FIXME: GCC doesn't consider the the following two statements to be errors. *(0 ? (double *)0 : (void *)(int *)0) = 0; // expected-error {{incomplete type 'void' is not assignable}} *(0 ? (double *)0 : (void *)(double *)0) = 0; // expected-error {{incomplete type 'void' is not assignable}} - *(0 ? (double *)0 : (int *)(void *)0) = 0; // expected-warning {{pointer type mismatch ('double *' and 'int *')}} + *(0 ? (double *)0 : (int *)(void *)0) = 0; // expected-error {{incomplete type 'void' is not assignable}} expected-warning {{pointer type mismatch ('double *' and 'int *')}} *(0 ? (double *)0 : (double *)(void *)0) = 0; *((void *) 0) = 0; // expected-error {{incomplete type 'void' is not assignable}} double *dp; |