summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/cast.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement GCC's -Wint-to-pointer-cast.David Blaikie2012-10-161-3/+12
| | | | | | | | | | | | This implementation doesn't warn on anything that GCC doesn't warn on with the exception of templates specializations (GCC doesn't warn, Clang does). The specific skipped cases (boolean, constant expressions, enums) are open for debate/adjustment if anyone wants to demonstrate that GCC is being overly conservative here. The only really obvious false positive I found was in the Clang regression suite's MPI test - apparently MPI uses specific flag values in pointer constants. (eg: #define FOO (void*)~0) llvm-svn: 166039
* Added scalar casts test.Abramo Bagnara2010-12-281-0/+141
| | | | llvm-svn: 122599
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Fix a recent regression probably caused by addition of altivec-styleFariborz Jahanian2009-11-231-0/+4
| | | | | | type-casts in the parser. llvm-svn: 89691
* PR4013 and PR4105: pointer-like types can only be cast to/from integers Eli Friedman2009-05-011-0/+6
| | | | | | and other pointer-like types. llvm-svn: 70531
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* casting to void is ok for structs (C99 6.5.4p2), this fixesChris Lattner2007-10-291-0/+8
one bogus error on PR1750. llvm-svn: 43436
OpenPOWER on IntegriCloud