summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/offsetof.c
Commit message (Collapse)AuthorAgeFilesLines
* Move a test that requires 64-bit mode to a separate test with a triple inRichard Trieu2013-05-151-11/+0
| | | | | | the run line. llvm-svn: 181854
* When computing the size of large arrays, use char units instead of bits.Richard Trieu2013-05-141-0/+12
| | | | | | | This prevents an overflow and assertion when the number of bits cannot be stored in 64-bits. llvm-svn: 181839
* Perform an lvalue-to-rvalue conversion on an array index in a ↵Richard Smith2011-10-171-0/+4
| | | | | | __builtin_offsetof expression. llvm-svn: 142179
* Fix a thinko that caused us not to compute __builtin_offset as aDouglas Gregor2010-04-301-0/+3
| | | | | | constant expression in C. llvm-svn: 102762
* Diagnose __builtin_offsetof expressions that refer to bit-fieldsDouglas Gregor2010-04-281-1/+9
| | | | llvm-svn: 102548
* 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
* Diagnose __builtin_offsetof on incomplete types. FixesJohn McCall2009-11-041-0/+6
| | | | | | rdar://problem/7222956 llvm-svn: 85999
* Fix for PR4079: make sure to construct the member expressions for Eli Friedman2009-04-261-0/+3
| | | | | | | | | offsetof correctly in the presence of anonymous structs/unions. This could definitely use some cleanup, but I don't really want to mess with the anonymous union/struct code. llvm-svn: 70156
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Change the AST generated for offsetof a bit so that it looks like a Eli Friedman2009-02-271-0/+10
| | | | | | | | normal expression, and change Evaluate and IRGen to evaluate it like a normal expression. This simplifies the code significantly, and fixes PR3396. llvm-svn: 65622
* Simplify test.Anders Carlsson2008-12-061-3/+4
| | | | llvm-svn: 60631
* make this pass by adding an expected error, add some tests.Chris Lattner2008-01-301-1/+10
| | | | llvm-svn: 46551
* Implement __builtin_offsetof.Anders Carlsson2008-01-291-0/+4
| | | | llvm-svn: 46515
* rename -parse-ast-print to -ast-printChris Lattner2007-10-111-1/+1
| | | | | | | rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only llvm-svn: 42852
* Removed option "-parse-ast-check" from clang driver. This is now implementedTed Kremenek2007-09-261-1/+1
| | | | | | | | | | | | using "-parse-ast -verify". Updated all test cases (using a sed script) that invoked -parse-ast-check to now use -parse-ast -verify. Fixed a bug where using "-verify" instead of "-parse-ast-check" would not correctly create the DiagClient needed to accumulate diagnostics. llvm-svn: 42365
* a new testcaseChris Lattner2007-08-301-0/+23
llvm-svn: 41614
OpenPOWER on IntegriCloud