def _libdevice_load(self, arch, expect): libdevice = LibDevice(arch=arch) self.assertEqual(libdevice.arch, expect)
def test_libdevice_load(self): # Test that constructing LibDevice gives a bitcode file libdevice = LibDevice() self.assertEqual(libdevice.bc[:4], b'BC\xc0\xde')