summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/attr-weak.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Delay attribute checking until auto types are deducedNico Rieck2014-01-211-2/+4
| | | | | | | | | Checking in ActOnVariableDeclarator computes and caches the linkage using the non-deduced auto type which defaults to external linkage. Depending on how the auto type is deduced linkage can change and conflict with the cached linkage, hitting asserts. llvm-svn: 199774
* Re-enabled support for the Subjects for the weak attribute. This changes the ↵Aaron Ballman2013-12-021-1/+3
| | | | | | diagnostic involved to be more accurate -- for C++ code, it will now report that weak applies to variables, functions or classes. Added additional test case for this. llvm-svn: 196120
* Check for internal weak decls after merging.Rafael Espindola2013-01-161-0/+7
| | | | | | | | This fixes pr14946. The problem was that the linkage computation was done too early, so things like "extern int a;" would be given external linkage, even if a previous declaration was static. llvm-svn: 172667
* When checking the 'weak' and 'weakref' attributes, look for non-externalJohn McCall2011-02-081-0/+29
linkage rather than the presence of the 'static' storage class specifier. Fixes rdar://problem/8814626. llvm-svn: 125126
OpenPOWER on IntegriCloud