gcc/testsuite/g++.dg/tree-ssa/pr28238.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O" } */ |
| 3 | |
| 4 | struct iterator{}; |
| 5 | struct ByteIterator : iterator |
| 6 | { |
| 7 | ByteIterator (){} |
| 8 | int a[1024]; |
| 9 | }; |
| 10 | inline ByteIterator f () |
| 11 | { |
| 12 | return ByteIterator (); |
| 13 | } |
| 14 | class ConfLexerCore |
| 15 | { |
| 16 | ConfLexerCore (); |
| 17 | ByteIterator m_matchStart; |
| 18 | }; |
| 19 | ConfLexerCore::ConfLexerCore () |
| 20 | : m_matchStart (f ()) |
| 21 | { } |
| 22 |