summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/expr-address-of.c
Commit message (Collapse)AuthorAgeFilesLines
* Diagnose attempt to take address of bitfield members in anonymous structs.Richard Smith2017-04-131-1/+2
| | | | | | | | Patch by Jacob Young! Differential Revision: https://reviews.llvm.org/D27263 llvm-svn: 300264
* PR15132: Replace "address expression must be an lvalue or a functionRichard Smith2013-02-021-6/+6
| | | | | | | | | | | | | | designator" diagnostic with more correct and more human-friendly "cannot take address of rvalue of type 'T'". For the case of & &T::f, provide a custom diagnostic, rather than unhelpfully saying "cannot take address of rvalue of type '<overloaded function type>'". For the case of &array_temporary, treat it just like a class temporary (including allowing it as an extension); the existing diagnostic wording for the class temporary case works fine. llvm-svn: 174262
* Add a new expression classification, CL_AddressableVoidPeter Collingbourne2011-04-191-0/+11
| | | | | | | | | CL_AddressableVoid is the expression classification used for void expressions whose address can be taken, i.e. the result of [], * or void variable references in C, as opposed to things like the result of a void function call. llvm-svn: 129783
* 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
* Some cleanup and bug-fixing for address-of checking. This causes a couple of Eli Friedman2009-04-201-3/+16
| | | | | | | | minor accepts-invalid regressions, but we weren't really rejecting them for the right reason. We really need a more general solution to detect all the cases of the promotion of arrays with a register storage class. llvm-svn: 69586
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Don't allow taking the address of an element in an ext_vectorNate Begeman2009-02-151-1/+6
| | | | llvm-svn: 64614
* Set register storage class correctly for function parameters.Daniel Dunbar2008-09-031-0/+3
| | | | | | - PR2730 llvm-svn: 55739
* Fix several issues in checking of address-of expressions.Daniel Dunbar2008-08-041-0/+55
| | | | | | | | | | | - clang was erroneously accepting address-of applied to lvalue expressions involving pointer arithmetic. - clang was erroneously rejecting address-of applied to deref expressions of pointer-typed variables. - Improved existing test case. - Fixes: <rdar://problem/6113867>, <rdar://problem/6080158> llvm-svn: 54326
* Fix http://llvm.org/bugs/show_bug.cgi?id=2103.Steve Naroff2008-02-291-1/+14
| | | | llvm-svn: 47775
* It is allowed to get the address of an array subscript, even if the array ↵Anders Carlsson2008-02-011-0/+5
| | | | | | has the register qualifier, if the array is really a pointer. llvm-svn: 46634
* Tighten up address-of checking, implementing test/Sema/expr-address-of.c. Chris Lattner2007-11-161-0/+15
This fixes a bug reported by Seo Sanghyeon. This was meant to be committed yesterday, but the commit failed. doh. llvm-svn: 44190
OpenPOWER on IntegriCloud