diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-11-23 13:54:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-11-23 13:54:40 +0000 |
commit | 4875bf2dc8e4ac99863c4756857e553e02090b48 (patch) | |
tree | 3f4c0abdbd771bdbb156c7de274403fd77b52191 | |
parent | 85489080807b47b70d26611ba543801e16bec4cd (diff) |
Check that we don't warn on this testcase. This is basically a test that
Decl::isUsed checks the attribute. If the function had a body just the check
is DeclMustBeEmitted would be sufficient.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168514 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/attr-used.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/attr-used.c b/test/Sema/attr-used.c index e2dfab141a..accc7b620b 100644 --- a/test/Sema/attr-used.c +++ b/test/Sema/attr-used.c @@ -17,4 +17,4 @@ void f1() { int b __attribute__((used)); // expected-warning {{used attribute ignored}} } - +static void __attribute__((used)) f0(void); |