1 // PR sanitizer/81125 2 // { dg-do compile } 3 // { dg-options "-fsanitize=undefined" } 4 5 #ifdef __SIZEOF_INT128__ 6 typedef __int128 T; 7 #else 8 typedef long long int T; 9 #endif 10 11 struct A 12 { 13 A (long); 14 T a; 15 }; 16 A(long c)17 A::A (long c) 18 { 19 long b = a % c; 20 } 21