PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr38245-1.c
blob1978d8dc8d50084aa897f5a1f1828558c44d2cae
1 /* PR rtl-optimization/38245 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 static inline int
6 f1 (int si1, int si2)
8 return si2 == 0 ? si1 : si1 / si2;
11 static inline unsigned long long
12 f2 (unsigned long long ui1, unsigned long long ui2)
14 return ui1 % ui2;
17 unsigned char g;
18 volatile unsigned int h;
20 void
21 f3 (void)
23 if (!((signed char) f1 (0, f2 (g, 2123)) - 1))
27 int
28 main (void)
30 f3 ();
31 return 0;
34 /* { dg-final { scan-tree-dump-not "% 2123" "optimized" } } */
35 /* { dg-final { scan-tree-dump-not "0 / " "optimized" } } */