summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-used.c
Commit message (Collapse)AuthorAgeFilesLines
* Amend r326665 to print out the `used` attribute subjects in a different order.Aaron Ballman2018-03-041-2/+2
| | | | llvm-svn: 326676
* Create a subject list for the `used` attribute rather than use custom ↵Aaron Ballman2018-03-031-2/+2
| | | | | | | | checking logic. This changes the diagnostic wording somewhat, but otherwise intends no functional change to the attribute. llvm-svn: 326665
* Removed a string literal for an attribute name, which means the attribute ↵Aaron Ballman2013-12-261-4/+4
| | | | | | name will be quoted in the diagnostic. Manually added some quotes to a diagnostic for consistency. Updated the test cases as appropriate. llvm-svn: 198054
* Check that we don't warn on this testcase. This is basically a test thatRafael Espindola2012-11-231-1/+1
| | | | | | | Decl::isUsed checks the attribute. If the function had a body just the check is DeclMustBeEmitted would be sufficient. llvm-svn: 168514
* c: privide deprecated warning when __private_extern__ storageFariborz Jahanian2012-08-171-1/+1
| | | | | | | | specifier is unsed in a declaration; as it may not make the symbol local to linkage unit as intended. Suggest using "hidden" visibility attribute instead. // rdar://7703982 llvm-svn: 162138
* Change the wording of the bad-decl-for-attribute warning and errorJohn McCall2011-01-251-1/+1
| | | | | | to make it clear that we're talking about the declarations and not the types. llvm-svn: 124175
* 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
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Warn about attribute used ignored on "extern int aDaniel Dunbar2009-02-131-0/+3
| | | | | | __attribute__((used))". llvm-svn: 64499
* Sema/AST support for attribute used. Patch by Anders Johnson (with small ↵Daniel Dunbar2009-02-131-0/+17
tweaks & test case)! llvm-svn: 64478
OpenPOWER on IntegriCloud