Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr81125.C
blob: c91ddc7db0e14a2ae3c49d0f975686f1353d857f [
file
] [
log
] [
blame
]
// PR sanitizer/81125
// { dg-do compile }
// { dg-options "-fsanitize=undefined" }
#ifdef
__SIZEOF_INT128__
typedef
__int128 T
;
#else
typedef
long
long
int
T
;
#endif
struct
A
{
A
(
long
);
T a
;
};
A
::
A
(
long
c
)
{
long
b
=
a
%
c
;
}