1 /* PR bootstrap/77676 - powerpc64 and powerpc64le stage2 bootstrap fail
2    Test case from comment 6 on the bug.  */
3 /* { dg-do compile } */
4 /* { dg-options "-Wall -Werror" } */
5 
6 struct A
7 {
8   const char *a;
9   int b;
10   const char *c;
11 };
12 
13 void bar (char *);
14 
15 void
foo(struct A * p)16 foo (struct A *p)
17 {
18   char s[4096];
19   const char *u = p->a;
20   const char *t;
21   while ((t = __builtin_strstr (u, "gcc/")))
22     u = t + 4;
23 
24   /* Verfiy the following doesn't emit a warning.  */
25   __builtin_sprintf (s, "%s:%i (%s)", u, p->b, p->c);
26   bar (s);
27 }
28