[cfe-commits] r78473 - /cfe/trunk/test/SemaObjC/format-arg-attribute.m
Daniel Dunbar
daniel at zuster.org
Sat Aug 8 08:47:00 PDT 2009
Author: ddunbar
Date: Sat Aug 8 10:47:00 2009
New Revision: 78473
URL: http://llvm.org/viewvc/llvm-project?rev=78473&view=rev
Log:
Update test case; I don't really understand why packed enums changed this, but
the new havior is better so...
Modified:
cfe/trunk/test/SemaObjC/format-arg-attribute.m
Modified: cfe/trunk/test/SemaObjC/format-arg-attribute.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/format-arg-attribute.m?rev=78473&r1=78472&r2=78473&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/format-arg-attribute.m (original)
+++ cfe/trunk/test/SemaObjC/format-arg-attribute.m Sat Aug 8 10:47:00 2009
@@ -11,8 +11,7 @@
struct s1 { int i; } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute only applies to function types}}
union u1 { int i; } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute only applies to function types}}
-// FIXME: We don't flag this yet.
-enum e1 { E1V0 } __attribute__((format_arg(1))); /* { dg-error "does not apply|only applies" "format_arg on enum" } */
+enum e1 { E1V0 } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute only applies to function types}}
extern NSString *ff3 (const NSString *) __attribute__((format_arg(3-2)));
extern NSString *ff4 (const NSString *) __attribute__((format_arg(foo))); // expected-error {{attribute requires 1 argument(s)}}
More information about the cfe-commits
mailing list