Created attachment 10492
testcase
This is extracted (and simplified a bit) from 8886 so that we have one case per
bug.
With gcc 4.8 the main function compiles down to just
main:
pushq %rbx
movl $3, %ebx
.L11:
xorl %eax, %eax
movl $3, %esi
movl $.LC0, %edi
call printf
subl $1, %ebx
jne .L11
xorl %eax, %eax
popq %rbx
ret
inline-devirt-3.C
(575 bytes, text/x-c++src)