summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-decl-after-definition.c
Commit message (Collapse)AuthorAgeFilesLines
* Without this patch clang warns onRafael Espindola2012-07-151-1/+18
| | | | | | | | | | | | | | | | | | | | | struct __attribute__((visibility("hidden"))) zed { }; struct __attribute__((visibility("hidden"))) zed; Which is a bit silly and got a lot noisier now that we correctly handle visibility pragmas. This patch fixes that and also has some extra quality improvements: * We now produce an error instead of a warning for struct __attribute__((visibility("hidden"))) zed { }; struct __attribute__((visibility("default"))) zed; * The "after definition" warning now points to the new attribute that is ignored instead of pointing to the declaration. llvm-svn: 160227
* Centralize the handling of the "attribute declaration must precede definition"Rafael Espindola2012-05-181-0/+3
| | | | | | | warning. This also makes us warn on tags, which, ironically, is the only case gcc warns on. llvm-svn: 157039
* 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
* PR3575 - warn on declared variable or function attributes after a ↵Ryan Flynn2009-07-251-0/+19
definition, which are currently ignored. llvm-svn: 77095
OpenPOWER on IntegriCloud