// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
xorl %eax, %eax
movq %rax, 0x30(%rsp)
movq %rsp, %r8
movq %rax, (%r8)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x22729(%rip), %rsi     # 0x5440b
leaq 0x2272a(%rip), %rdx     # 0x54413
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x32cf6
cmpb $0x0, (%r14)
je 0x31dc4
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c37a
movq %rsp, %rcx
movl $0x0, (%rcx)
leaq 0x28(%rsp), %r8
leaq 0x21e17(%rip), %rsi     # 0x53b38
leaq 0x226f7(%rip), %rdx     # 0x5441f
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x32e9d
cmpb $0x0, (%r14)
je 0x31ddb
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c37a
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x31d72
addq $0x10, %rbx
movq %rbx, %rdi
callq 0x41eea
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
xorl %eax, %eax
movq %rsp, %r8
movq %rax, (%r8)
leaq 0x8(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x22682(%rip), %rsi     # 0x5440b
leaq 0x22683(%rip), %rdx     # 0x54413
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x32cf6
cmpb $0x0, (%rbx)
jne 0x31f28
movq %rsp, %rdi
callq 0x12e46
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x31ecb
movq (%rax), %r8
jmp 0x31ed2
movq %rsp, %rdi
callq 0x12e46
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x31df2
movq (%rax), %r8
jmp 0x31df9
movq %rsp, %rdi
callq 0x12e46
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x31e60
movq (%rax), %r8
jmp 0x31e67
leaq 0x260ce(%rip), %r8      # 0x57ec7
leaq 0x225f2(%rip), %rdx     # 0x543f2
leaq 0x8(%rsp), %rdi
movl $0x2, %esi
movl $0x1e, %ecx
callq 0x10b64
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x10c00
leaq 0x8(%rsp), %rdi
callq 0x10bd0
cmpq $0x0, (%rsp)
je 0x31e4f
movl $0x1, %edi
callq 0x10b61
testb %al, %al
je 0x31e4f
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x31e4f
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c37a
jmp 0x31f34
leaq 0x26060(%rip), %r8      # 0x57ec7
leaq 0x22584(%rip), %rdx     # 0x543f2
leaq 0x8(%rsp), %rdi
movl $0x2, %esi
movl $0x1f, %ecx
callq 0x10b64
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x10c00
leaq 0x8(%rsp), %rdi
callq 0x10bd0
cmpq $0x0, (%rsp)
je 0x31ebd
movl $0x1, %edi
callq 0x10b61
testb %al, %al
je 0x31ebd
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x31ebd
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c37a
jmp 0x31f34
leaq 0x25ff5(%rip), %r8      # 0x57ec7
leaq 0x22519(%rip), %rdx     # 0x543f2
leaq 0x8(%rsp), %rdi
movl $0x2, %esi
movl $0x22, %ecx
callq 0x10b64
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x10c00
leaq 0x8(%rsp), %rdi
callq 0x10bd0
cmpq $0x0, (%rsp)
je 0x31f28
movl $0x1, %edi
callq 0x10b61
testb %al, %al
je 0x31f28
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x31f28
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x2c37a
addq $0x38, %rsp
popq %rbx
popq %r14
retq
jmp 0x31f87
jmp 0x31f56
jmp 0x31f65
jmp 0x31f72
jmp 0x31f87
jmp 0x31f87
jmp 0x31f87
jmp 0x31f56
jmp 0x31f65
jmp 0x31f72
jmp 0x31f87
jmp 0x31f87
jmp 0x31f87
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x10bd0
jmp 0x31f68
movq %rax, %rbx
movq %rsp, %rdi
callq 0x31a70
jmp 0x31f75
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x31a82
movq %rbx, %rdi
callq 0xcbb0
movq %rax, %rdi
callq 0x287ef
nop