#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/BinaryFormat/Magic.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "gtest/gtest.h"
usingnamespacellvm;
fs;
#define ASSERT_NO_ERROR(x) …
class MagicTest : public testing::Test { … };
const char archive[] = …;
const char big_archive[] = …;
const char bitcode[] = …;
const char coff_object[] = …;
const char coff_bigobj[] = …;
const char coff_import_library[] = …;
const char elf_relocatable[] = …;
const char goff_object[] = …;
const char macho_universal_binary[] = …;
const char macho_object[] = …;
const char macho_executable[] = …;
const char macho_fixed_virtual_memory_shared_lib[] = …;
const char macho_core[] = …;
const char macho_preload_executable[] = …;
const char macho_dynamically_linked_shared_lib[] = …;
const char macho_dynamic_linker[] = …;
const char macho_bundle[] = …;
const char macho_dsym_companion[] = …;
const char macho_kext_bundle[] = …;
const char windows_resource[] = …;
const char macho_dynamically_linked_shared_lib_stub[] = …;
const char ms_dos_stub_broken[] = …;
const char pdb[] = …;
const char tapi_file[] = …;
const char tapi_file_tbd_v1[] = …;
const char spirv_object_le[] = …;
const char spirv_object_be[] = …;
TEST_F(MagicTest, Magic) { … }