gcc/gcc/testsuite/g++.dg/tree-ssa/pr28238.C

23 lines
360 B
C

/* { dg-do compile } */
/* { dg-options "-O" } */
struct iterator{};
struct ByteIterator : iterator
{
ByteIterator (){}
int a[1024];
};
inline ByteIterator f ()
{
return ByteIterator ();
}
class ConfLexerCore
{
ConfLexerCore ();
ByteIterator m_matchStart;
};
ConfLexerCore::ConfLexerCore ()
: m_matchStart (f ())
{ }