[cfe-commits] r168514 - /cfe/trunk/test/Sema/attr-used.c
Rafael Espindola
rafael.espindola at gmail.com
Fri Nov 23 05:54:40 PST 2012
Author: rafael
Date: Fri Nov 23 07:54:40 2012
New Revision: 168514
URL: http://llvm.org/viewvc/llvm-project?rev=168514&view=rev
Log:
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.
Modified:
cfe/trunk/test/Sema/attr-used.c
Modified: cfe/trunk/test/Sema/attr-used.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-used.c?rev=168514&r1=168513&r2=168514&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-used.c (original)
+++ cfe/trunk/test/Sema/attr-used.c Fri Nov 23 07:54:40 2012
@@ -17,4 +17,4 @@
int b __attribute__((used)); // expected-warning {{used attribute ignored}}
}
-
+static void __attribute__((used)) f0(void);
More information about the cfe-commits
mailing list