repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr81125.C
blob
c91ddc7db0e14a2ae3c49d0f975686f1353d857f
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
17
A::A (long c)
18
{
19
long b = a % c;
20
}