summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/conditional-expr.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix <rdar://problem/5928590> clang -fsyntax-only: "incompatible operand ↵Steve Naroff2008-05-121-0/+4
| | | | | | types ('int' and 'void')" on input that 'gcc -fsyntax-only' eats llvm-svn: 51002
* Fix a minor bug in isNullPointerConstant triggered by the linux Eli Friedman2008-02-131-0/+3
| | | | | | | | | tgmath.h. Note that there is another issue with tgmath.h, so mandel.c still doesn't work. llvm-svn: 47069
* Make typechecking for enum+int compatibility stricter.Eli Friedman2008-02-121-0/+4
| | | | llvm-svn: 47005
* Fix type compatibility between constant and variable arrays.Eli Friedman2008-02-121-0/+5
| | | | llvm-svn: 47003
* Add a couple of sema tests for qualifiers with conditionals containing Eli Friedman2008-02-101-0/+4
| | | | | | void*. llvm-svn: 46939
* Fix test case and add a FIXME.Steve Naroff2008-01-301-1/+2
| | | | llvm-svn: 46577
* Revert r45951, Chris says it violates the C99 spec.Steve Naroff2008-01-141-2/+2
| | | | llvm-svn: 45961
* Rewrite Expr::isNullPointerConstant() to deal with multiple levels of ↵Steve Naroff2008-01-141-4/+8
| | | | | | | | explicit casts. Now, isNullPointerConstant() will return true for the following: "(void*)(double*)0" llvm-svn: 45951
* Change Sema::CheckAddressOfOperation() to respect C99-only addressof rules.Steve Naroff2008-01-131-1/+1
| | | | | | | | | | | | | | | | | | Remove diagnostics from Sema::CheckIndirectionOperand(). C89/C99 allow dereferencing an incomplete type. clang appears to be emulating some incorrect gcc behavior (see below). void foo (void) { struct b; struct b* x = 0; struct b* y = &*x; // gcc produces an error ("dereferencing pointer to incomplete type") } With this patch, the above is now allowed. Bug/Patch by Eli Friedman! llvm-svn: 45933
* Fix Sema::CheckConditionalOperands(). The null pointer constant checks need ↵Steve Naroff2008-01-081-0/+17
to precede the check for two pointer operands. llvm-svn: 45732
OpenPOWER on IntegriCloud