[cfe-commits] r46577 - /cfe/trunk/test/Sema/conditional-expr.c
Steve Naroff
snaroff at apple.com
Wed Jan 30 13:50:43 PST 2008
Author: snaroff
Date: Wed Jan 30 15:50:43 2008
New Revision: 46577
URL: http://llvm.org/viewvc/llvm-project?rev=46577&view=rev
Log:
Fix test case and add a FIXME.
Modified:
cfe/trunk/test/Sema/conditional-expr.c
Modified: cfe/trunk/test/Sema/conditional-expr.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/conditional-expr.c?rev=46577&r1=46576&r2=46577&view=diff
==============================================================================
--- cfe/trunk/test/Sema/conditional-expr.c (original)
+++ cfe/trunk/test/Sema/conditional-expr.c Wed Jan 30 15:50:43 2008
@@ -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;
More information about the cfe-commits
mailing list