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 | 890d93eec45f2ba720dce98e34a1a904697ae842 (patch) | |
tree | db3b2d99052a25ab52d578f55b24b5fc1e1d8473 /test/Sema/conditional-expr.c | |
parent | 5bfe18c32f5df99daa14f42574cae1323dfb866a (diff) |
Fix test case and add a FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/conditional-expr.c')
-rw-r--r-- | test/Sema/conditional-expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/conditional-expr.c b/test/Sema/conditional-expr.c index c7c6ff242c..a113adeeb3 100644 --- a/test/Sema/conditional-expr.c +++ b/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; |