[cfe-dev] make test failing: Sema/conditional-expr.c

Steve Naroff snaroff at apple.com
Wed Jan 30 13:53:21 PST 2008


This was likely caused by r46557 (Eli, do you agree?).

Since the error appears to be correct, I changed the test case. There  
are other "expected" errors in this test case that don't appear  
consistent with GCC.

snaroff

On Jan 30, 2008, at 1:23 PM, Ted Kremenek wrote:

> I'm now seeing the following regression in 'make test':
>
> ******************** TEST 'Sema/conditional-expr.c' FAILED!  
> ********************
> Command:
>  clang -fsyntax-only -verify -pedantic Sema/conditional-expr.c
> Output:
> Errors seen but not expected:
>   Line 6: incomplete type 'void' is not assignable
>
>
> The offending line:
>
>   *(0 ? (double *)0 : (int *)(void *)0) = 0; // expected-warning  
> {{pointer type mismatch ('double *' and 'int *')}}
>
> and the unexpected warning:
>
> conditional-expr.c:6:41: error: incomplete type 'void' is not  
> assignable
>   *(0 ? (double *)0 : (int *)(void *)0) = 0; // expected-warning  
> {{pointer type mismatch ('double *' and 'int *')}}
>   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
>
> Did someone forget to update this test, or is this a regression?  It  
> looks like a regression to me, since the l-value on the left side of  
> the assignment is not of type void.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080130/9f12a8b3/attachment.html>


More information about the cfe-dev mailing list