summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/reference-init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix reference binding of const lvalue references to bit-fields, whichDouglas Gregor2010-01-291-0/+3
| | | | | | | | | | | | | | | | | requires a temporary. Previously, we were building an initialization sequence that bound to the bit-field as if it were a real lvalue. Note that we previously (and still) diagnose binding of non-const references to bit-fields, as we should. There's no real way to test that this code is correct, since reference binding does not *currently* have any representation in the AST. This fix should make it easier for that to happen, so I've verified this fix with... Added InitializationSequence::dump(), to print an initialization sequence for debugging purposes. llvm-svn: 94826
* Fix a code gen. bug involving compiling global references.Fariborz Jahanian2010-01-251-0/+5
| | | | | | (fixes radar 7574896). llvm-svn: 94434
* Fix the CodeGen half of PR5911 by changing reference initialization toChandler Carruth2010-01-121-0/+7
| | | | | | | correctly look through arrays to see cv-qualifiers. Also enhances the routine for doing this to preserve more type sugaring for diagnostics. llvm-svn: 93252
* 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 from the initialization changes.Eli Friedman2009-12-111-0/+9
llvm-svn: 91097
OpenPOWER on IntegriCloud