diff --git a/test/codegen/sample.cpp b/test/codegen/sample.cpp index f2ebcb3..ba98f51 100644 --- a/test/codegen/sample.cpp +++ b/test/codegen/sample.cpp @@ -424,11 +424,19 @@ opt::option option_int_return_none() { //$ mov rax, qword ptr [rsp - 0x8] //$ ret -//$ @optional_int_return_default_ctor {gcc <11}: +//$ @optional_int_return_default_ctor {gcc 10..<11}: //$ mov dword ptr [rsp - 0xc], 0x0 //$ mov rax, qword ptr [rsp - 0x10] //$ ret +//$ @optional_int_return_default_ctor {gcc <9}: +//$ xor eax, eax +//$ mov byte ptr [rsp - 0x9], 0x0 +//$ mov word ptr [rsp - 0xb], ax +//$ mov byte ptr [rsp - 0xc], 0x0 +//$ mov rax, qword ptr [rsp - 0x10] +//$ ret + //$ @optional_int_return_default_ctor {msvc}: //$ mov byte ptr [rcx + 0x4], 0x0 //$ mov rax, rcx