PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr84068.c
blob13110d84455f20edfc50f09efe4074721bd6a7d0
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-sched-critical-path-heuristic -fno-sched-rank-heuristic --param=max-sched-extend-regions-iters=5 --param sched-pressure-algorithm=2" } */
4 #ifdef __SIZEOF_INT128__
5 typedef __int128 largeint;
6 #else
7 typedef long long largeint;
8 #endif
10 largeint a;
11 int b;
13 largeint
14 foo (char d, short e, int f)
16 b = __builtin_sub_overflow_p (b, 1, (unsigned long)0);
17 return a + f;