aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-08 15:47:00 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-08 15:47:00 +0000
commit2aa944463a282c0a9d6c68fa7cb7bb3184b833f4 (patch)
tree60ada0709a95134533b518cc0464e2fba04dcd71 /test/SemaObjC
parentfee13819693c8492f0c364bc704645e844ef737a (diff)
Update test case; I don't really understand why packed enums changed this, but
the new havior is better so... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC')
-rw-r--r--test/SemaObjC/format-arg-attribute.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/SemaObjC/format-arg-attribute.m b/test/SemaObjC/format-arg-attribute.m
index 60cc7cb44f..dc5aa8932c 100644
--- a/test/SemaObjC/format-arg-attribute.m
+++ b/test/SemaObjC/format-arg-attribute.m
@@ -11,8 +11,7 @@ extern void fc3 (const NSString *) __attribute__((format_arg(1, 2))); // expecte
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)}}