PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr57105.c
bloba968f52375e8fc5023dce144738f9923a932475c
1 /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-Os -fselective-scheduling2 -g" } */
3 int bar (int);
4 int *baz (int *);
6 void
7 foo (int a)
9 while (bar (0))
11 int *c = baz (0);
12 if (a)
14 int i = *baz (c);
16 bar (*baz (c));