1 // PR c++/64629
2 // { dg-options "-Wformat -Wformat-security" }
3 
4 extern void bar (int, const char *, ...) __attribute__((format (printf, 2, 3)));
5 void
foo(void)6 foo (void)
7 {
8   const char *const msg = "abc";
9   bar (1, msg);
10   bar (1, msg + 1);
11   bar (1, 1 + msg);
12 }
13