From 4875bf2dc8e4ac99863c4756857e553e02090b48 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 23 Nov 2012 13:54:40 +0000 Subject: [PATCH] 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 --- test/Sema/attr-used.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0