PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr81192.c
blob0049f371b3d14833df4cd7e1347a43a2bc646deb
1 /* { dg-options "-Os -fdump-tree-pre-details" } */
3 #if __SIZEOF_INT__ == 2
4 #define unsigned __UINT32_TYPE__
5 #define int __INT32_TYPE__
6 #endif
8 unsigned a;
9 int b, c;
11 static int
12 fn1 (int p1, int p2)
14 return p1 > 2147483647 - p2 ? p1 : p1 + p2;
17 void
18 fn2 (void)
20 int j;
21 a = 30;
22 for (; a;)
23 for (; c; b = fn1 (j, 1))
27 /* { dg-final { scan-tree-dump-times "(?n)find_duplicates: <bb .*> duplicate of <bb .*>" 1 "pre" } } */