// File: /workspace/github_c_makefile_star2_O0/deplinenoise[P]tundra/unittest/Test_Buffer.cpp
// Function: BufferTest_Init_Test::TestBody()
TEST_F(BufferTest, Init)
{
  Buffer<int> b;

  BufferInit(&b);
  ASSERT_EQ(nullptr, b.m_Storage);
  ASSERT_EQ(0, b.m_Size);

  BufferDestroy(&b, &heap);
  ASSERT_EQ(nullptr, b.m_Storage);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x50610
movq -0x20(%rbp), %r8
leaq 0x3d7cd(%rip), %rsi     # 0x8c97b
leaq 0x3d7ce(%rip), %rdx     # 0x8c983
xorl %eax, %eax
movl %eax, %ecx
leaq -0x30(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x50640
movq -0xb0(%rbp), %rdi
callq 0x31090
movb %al, -0xa1(%rbp)
jmp 0x4f1dd
movb -0xa1(%rbp), %al
testb $0x1, %al
jne 0x4f1e9
jmp 0x4f1ff
jmp 0x4f297
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4f30c
leaq -0x48(%rbp), %rdi
callq 0x16d70
jmp 0x4f20a
leaq -0x30(%rbp), %rdi
callq 0x310b0
movq %rax, -0xc0(%rbp)
jmp 0x4f21c
movq -0xc0(%rbp), %r8
leaq 0x3d738(%rip), %rdx     # 0x8c962
leaq -0x50(%rbp), %rdi
movl $0x2, %esi
movl $0x1e, %ecx
callq 0x13fa0
jmp 0x4f23f
leaq -0x50(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x14060
jmp 0x4f24e
leaq -0x50(%rbp), %rdi
callq 0x14020
leaq -0x48(%rbp), %rdi
callq 0x31070
movl $0x1, -0x54(%rbp)
jmp 0x4f29e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4f28c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x14020
leaq -0x48(%rbp), %rdi
callq 0x31070
jmp 0x4f30c
movl $0x0, -0x54(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x30d20
movl -0x54(%rbp), %eax
testl %eax, %eax
je 0x4f2b5
jmp 0x4f2b0
jmp 0x4f52b
movl $0x0, -0x6c(%rbp)
leaq -0x18(%rbp), %r8
leaq 0x3cdf7(%rip), %rsi     # 0x8c0be
leaq 0x3d6c1(%rip), %rdx     # 0x8c98f
xorl %eax, %eax
movl %eax, %r9d
leaq -0x68(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
leaq -0x6c(%rbp), %rcx
callq 0x50690
movq -0xd0(%rbp), %rdi
callq 0x31090
movb %al, -0xc1(%rbp)
jmp 0x4f2fb
movb -0xc1(%rbp), %al
testb $0x1, %al
jne 0x4f307
jmp 0x4f32b
jmp 0x4f3c6
leaq -0x30(%rbp), %rdi
callq 0x30d20
jmp 0x4f540
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4f446
leaq -0x78(%rbp), %rdi
callq 0x16d70
jmp 0x4f336
leaq -0x68(%rbp), %rdi
callq 0x310b0
movq %rax, -0xd8(%rbp)
jmp 0x4f348
movq -0xd8(%rbp), %r8
leaq 0x3d60c(%rip), %rdx     # 0x8c962
leaq -0x80(%rbp), %rdi
movl $0x2, %esi
movl $0x1f, %ecx
callq 0x13fa0
jmp 0x4f36b
leaq -0x80(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x14060
jmp 0x4f37a
leaq -0x80(%rbp), %rdi
callq 0x14020
leaq -0x78(%rbp), %rdi
callq 0x31070
movl $0x1, -0x54(%rbp)
jmp 0x4f3cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4f3b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x14020
leaq -0x78(%rbp), %rdi
callq 0x31070
jmp 0x4f446
movl $0x0, -0x54(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x30d20
movl -0x54(%rbp), %eax
testl %eax, %eax
je 0x4f3e4
jmp 0x4f3df
jmp 0x4f52b
movq -0xb8(%rbp), %rsi
addq $0x10, %rsi
leaq -0x20(%rbp), %rdi
callq 0x506e0
movq -0x20(%rbp), %r8
leaq 0x3d578(%rip), %rsi     # 0x8c97b
leaq 0x3d579(%rip), %rdx     # 0x8c983
xorl %eax, %eax
movl %eax, %ecx
leaq -0x90(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x50640
movq -0xe8(%rbp), %rdi
callq 0x31090
movb %al, -0xd9(%rbp)
jmp 0x4f435
movb -0xd9(%rbp), %al
testb $0x1, %al
jne 0x4f441
jmp 0x4f465
jmp 0x4f518
leaq -0x68(%rbp), %rdi
callq 0x30d20
jmp 0x4f540
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4f534
leaq -0x98(%rbp), %rdi
callq 0x16d70
jmp 0x4f473
leaq -0x90(%rbp), %rdi
callq 0x310b0
movq %rax, -0xf0(%rbp)
jmp 0x4f488
movq -0xf0(%rbp), %r8
leaq 0x3d4cc(%rip), %rdx     # 0x8c962
leaq -0xa0(%rbp), %rdi
movl $0x2, %esi
movl $0x22, %ecx
callq 0x13fa0
jmp 0x4f4ae
leaq -0xa0(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x14060
jmp 0x4f4c3
leaq -0xa0(%rbp), %rdi
callq 0x14020
leaq -0x98(%rbp), %rdi
callq 0x31070
movl $0x1, -0x54(%rbp)
jmp 0x4f51f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4f50a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x14020
leaq -0x98(%rbp), %rdi
callq 0x31070
jmp 0x4f534
movl $0x0, -0x54(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x30d20
addq $0xf0, %rsp
popq %rbp
retq
leaq -0x90(%rbp), %rdi
callq 0x30d20
movq -0x38(%rbp), %rdi
callq 0xee80
nopl (%rax)