Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr66452.C
blob: 473543ca8999884412ff44d0f660f5fe7dbec9cc [
file
] [
log
] [
blame
]
// PR sanitizer/66452
// { dg-do compile }
// { dg-options "-Wall -fsanitize=undefined" }
class
A
{
public
:
A
(
int
);
};
class
B
{
A m_fn1
()
const
;
};
A B
::
m_fn1
()
const
{
for
(
int
i
=
0
;
i
;)
;
return
0
;
}