* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56396.c
blob160545b9859b8d01cca0be1321400023fc3bcd31
1 /* PR tree-optimization/56396 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target fpic } */
4 /* { dg-options "-O2 -fpic -g" } */
6 struct S { char *s; int z; };
7 struct T { int t; } *c, u;
8 void bar (int, const char *);
10 inline void *
11 foo (void *x, char *y, int z)
13 struct S s;
14 char b[256];
15 s.s = b;
16 s.z = __builtin___sprintf_chk (s.s, 1, __builtin_object_size (s.s, 2), "Require");
17 if (s.z < 0)
18 bar (u.t | c->t, "rls");
19 if (foo (x, s.s, s.z))
22 return (void *) 0;