2 // { dg-options "-Wformat=2" }
4 extern "C" int printf (const char*, ...);
8 printf("Hello World %d!\n", i);
9 printf(&"Hello World %d!\n"[0], i);
10 printf(&"Hello World %d!\n"[6], i);
11 printf(&"Hello World %d!\n"[8]-2, i);
12 printf(&"Hello World %d!\n"[4]+2, i);