1 /* { dg-do run } */
2 /* { dg-options "-O2 -fno-dce -fno-ipa-cp -fno-tree-dce" } */
3
4 char a, b;
5
6 #ifdef __SIZEOF_INT128__
7 #define T unsigned __int128
8 #else
9 #define T unsigned
10 #endif
11
12 static inline int
13 c (T d)
14 {
15 char e = 0;
16 d %= (unsigned) d;
17 e -= 0;
18 __builtin_strncpy (&a, &e, 1);
19 return e + b;
20 }
21
22 int
23 main (void)
24 {
25 c (~0);
26 return 0;
27 }