repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr81209.C
blob
3f2a576890770fe450050234ad9154698262993f
1
// PR sanitizer/81209
2
// { dg-do compile }
3
// { dg-options "-fsanitize=undefined -fno-declone-ctor-dtor" }
4
5
#ifdef __SIZEOF_INT128__
6
typedef __int128 T;
7
#else
8
typedef long long int T;
9
#endif
10
11
struct B {};
12
struct A : virtual public B
13
{
14
A (long);
15
T a;
16
};
17
18
A::A (long c)
19
{
20
long b = a % c;
21
}