From 890d93eec45f2ba720dce98e34a1a904697ae842 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Wed, 30 Jan 2008 21:50:43 +0000 Subject: [PATCH] Fix test case and add a FIXME. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46577 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/conditional-expr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.50.1