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