summaryrefslogtreecommitdiffstats
path: root/test/Sema/attr-format.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/attr-format.c')
-rw-r--r--test/Sema/attr-format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/attr-format.c b/test/Sema/attr-format.c
index a223e08..21d9585 100644
--- a/test/Sema/attr-format.c
+++ b/test/Sema/attr-format.c
@@ -78,3 +78,5 @@ extern void gcc_cxxformat (const char *, ...)
__attribute__ ((__format__(__gcc_cxxdiag__, 1, 2)));
extern void gcc_tformat (const char *, ...)
__attribute__ ((__format__(__gcc_tdiag__, 1, 2)));
+
+const char *foo3(const char *format) __attribute__((format_arg("foo"))); // expected-error{{'format_arg' attribute requires parameter 1 to be an integer constant}}
OpenPOWER on IntegriCloud