Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
;
}