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