summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/format-arg-attribute.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-05-02 23:15:45 +0000
committerDouglas Gregor <dgregor@apple.com>2013-05-02 23:15:45 +0000
commit33ebfe36e59dbc75a5f7ae28d59381ad478f460b (patch)
treea196bbabea5e86b50f46027143a9516c06202ce5 /clang/test/SemaObjC/format-arg-attribute.m
parent076b7fc6084342c7c4c2e05b1775e001216a914c (diff)
downloadbcm5719-llvm-33ebfe36e59dbc75a5f7ae28d59381ad478f460b.tar.gz
bcm5719-llvm-33ebfe36e59dbc75a5f7ae28d59381ad478f460b.zip
Revert r180970; it's causing breakage.
llvm-svn: 180972
Diffstat (limited to 'clang/test/SemaObjC/format-arg-attribute.m')
-rw-r--r--clang/test/SemaObjC/format-arg-attribute.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/format-arg-attribute.m b/clang/test/SemaObjC/format-arg-attribute.m
index dede433f37a..6edb8fd99b3 100644
--- a/clang/test/SemaObjC/format-arg-attribute.m
+++ b/clang/test/SemaObjC/format-arg-attribute.m
@@ -14,7 +14,7 @@ union u1 { int i; } __attribute__((format_arg(1))); // expected-warning {{'form
enum e1 { E1V0 } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute only applies to functions}}
extern NSString *ff3 (const NSString *) __attribute__((format_arg(3-2)));
-extern NSString *ff4 (const NSString *) __attribute__((format_arg(foo))); // expected-error {{use of undeclared identifier 'foo'}}
+extern NSString *ff4 (const NSString *) __attribute__((format_arg(foo))); // expected-error {{attribute takes one argument}}
/* format_arg formats must take and return a string. */
extern NSString *fi0 (int) __attribute__((format_arg(1))); // expected-error {{format argument not a string type}}
OpenPOWER on IntegriCloud