[cfe-commits] r168514 - /cfe/trunk/test/Sema/attr-used.c
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Nov 23 06:02:25 PST 2012
btw, if you think we should warn let me know and I will change
Decl::isUsed instead.
On 23 November 2012 08:54, Rafael Espindola <rafael.espindola at gmail.com> wrote:
> 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);
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list