summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/statements.c
Commit message (Collapse)AuthorAgeFilesLines
* Teach sema and codegen about the difference between address of labels,Chris Lattner2009-10-131-1/+3
| | | | | | | | | | which is a common idiom to improve PIC'ness of code using the addr of label extension. This implementation is a gross hack, but the only other alternative would be to teach evalutate about this horrid combination. While GCC allows things like "&&foo - &&bar + 1", people don't use this in practice. This implements PR5131. llvm-svn: 83957
* merge an indirect goto test into statements, add anotherChris Lattner2009-10-131-0/+20
| | | | | | hairier (but nonsensical) example. llvm-svn: 83951
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* explicitly document that return statement argument does not necessarily ↵Chris Lattner2008-02-061-2/+6
| | | | | | follow the result type of the function. Add testcase. llvm-svn: 46823
* Move promoteExprToType from being a static method in SemaExpr.cpp to beingChris Lattner2008-01-161-0/+9
a method named ImpCastExprToType in Sema. Use this method to insert implicit casts for case statements from their operand type to the condition type of the switch. This fixes a crash on test/CodeGen/statements.c, reported by Eli Friedman. llvm-svn: 46083
OpenPOWER on IntegriCloud