PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr34027-1.c
blob0405e357a2f57d17d53fcfb097c38e8bb01a9315
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fdump-tree-optimized" } */
4 unsigned long foobar(unsigned long ns)
6 while(ns >= 10000L)
7 ns -= 10000L;
8 return ns;
11 /* This test was originally introduced to test that we transform
12 to ns % 10000. See the discussion of PR 32044 why we do not do
13 that anymore. */
14 /* { dg-final { scan-tree-dump-times " % " 0 "optimized" } } */
15 /* { dg-final { scan-tree-dump-times " / " 0 "optimized" } } */