summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/anonymous-namespaces.cpp
Commit message (Collapse)AuthorAgeFilesLines
* DR1113: anonymous namespaces formally give their contents internal linkage.Richard Smith2017-09-221-1/+8
| | | | | | | | | | | | | | | | | | | | This doesn't affect our code generation in any material way -- we already give such declarations internal linkage from a codegen perspective -- but it has some subtle effects on code validity. We suppress the 'L' (internal linkage) marker for mangled names in anonymous namespaces, because it is redundant (the information is already carried by the namespace); this deviates from GCC's behavior if a variable or function in an anonymous namespace is redundantly declared 'static' (where GCC does include the 'L'), but GCC's behavior is incoherent because such a declaration can be validly declared with or without the 'static'. We still deviate from the standard in one regard here: extern "C" declarations in anonymous namespaces are still granted external linkage. Changing those does not appear to have been an intentional consequence of the standard change in DR1113. llvm-svn: 314037
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-4/+4
| | | | | | tests fail. llvm-svn: 188447
* Fix FileCheck --check-prefix lines.Tim Northover2013-08-121-2/+2
| | | | | | | | | | Various tests had sprung up over the years which had --check-prefix=ABC on the RUN line, but "CHECK-ABC:" later on. This happened to work before, but was strictly incorrect. FileCheck is getting stricter soon though. Patch by Ron Ofir. llvm-svn: 188174
* Let CodeGenFunction::EmitVarDecl query the semantic storage class info.Enea Zaffanella2013-05-161-0/+9
| | | | | | Added testcase corresponding to PR15991. llvm-svn: 181998
* Add -fcxx-exceptions to all tests that use C++ exceptions.Anders Carlsson2011-02-281-1/+1
| | | | llvm-svn: 126599
* Pass -fexceptions to all tests that use try/catch/throw.Anders Carlsson2011-02-191-1/+1
| | | | llvm-svn: 126037
* Properly give unique-external linkage to members of member templatesJohn McCall2010-08-131-8/+30
| | | | | | instantiated with unique-external parameters. llvm-svn: 111012
* The global variable for the VTT might not have external linkage; allowDouglas Gregor2010-05-061-1/+9
| | | | | | | us to find local variables, too. Fixes the last remaining Boost.Rational failure. llvm-svn: 103203
* If a global variable has an initializer with side effects, it can never be ↵Anders Carlsson2010-01-261-0/+16
| | | | | | deferred (even if it's in an anonymous namespace). llvm-svn: 94525
* 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
* Anonymous namespaces, sema + codegen. A lot of semantics are still broken,John McCall2009-10-011-0/+22
apparently because using directives aren't quite working correctly. llvm-svn: 83184
OpenPOWER on IntegriCloud