summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/static-data-member.cpp
Commit message (Collapse)AuthorAgeFilesLines
* C++11 allows unions to have static data members. Remove the correspondingRichard Smith2012-02-161-0/+24
| | | | | | restriction and add some tests. llvm-svn: 150721
* Reinstate r142844 (reverted in r142872) now that lvalue-to-rvalue conversionsRichard Smith2011-10-281-0/+14
| | | | | | | | | | are present in all the necessary places: In constant expression evaluation, evaluate lvalues as lvalues and rvalues as rvalues. Remove special case for caching reference initialization and fix a cyclic initialization crash in the process. llvm-svn: 143204
* Template static data members can have weak_odr linkage, not justJohn McCall2011-04-121-2/+2
| | | | | | | | weak linkage. Also, fix a problem where global weak variables with non-trivial initializers were getting guard variables, or at least were checking for them and then crashing. llvm-svn: 129342
* Simplify the logic for emitting guard variables for template staticJohn McCall2010-11-061-11/+59
| | | | | | | | | data members by delaying the emission of the initializer until after linkage and visibility have been set on the global. Also, don't emit a guard unless the variable actually ends up with vague linkage, and don't use thread-safe statics in any case. llvm-svn: 118336
* Use the right definition when emitting a global variable. Fixes PR5564.Anders Carlsson2010-01-261-0/+10
| | | | llvm-svn: 94555
* 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 crash when referencing static data members.Anders Carlsson2009-09-021-0/+8
llvm-svn: 80835
OpenPOWER on IntegriCloud