Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr92825.c

raw
1 /* PR middle-end/92825 */
2 /* { dg-do compile { target fstack_protector } } */
3 /* { dg-options "-O2 -fstack-protector-strong" } */
4 /* { dg-final { scan-assembler-not "__stack_chk_fail" } } */
5
6 int
7 foo (int r, int g, int b)
8 {
9 union U { int rgba; char p[4]; } u;
10 u.p[0] = r;
11 u.p[1] = g;
12 u.p[2] = b;
13 u.p[3] = -1;
14 return u.rgba;
15 }