[python-bindings] Added test for reading a module from bitcode.

llvm-svn: 190467
This commit is contained in:
Michael Gottesman 2013-09-11 00:41:05 +00:00
parent 8f06d55697
commit 28ff44ab37
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
from .base import TestBase
from ..core import OpCode
from ..core import MemoryBuffer
from ..core import PassRegistry
from ..core import Context
from ..core import Module
from ..bit_reader import parse_bitcode
class TestBitReader(TestBase):
def test_parse_bitcode(self):
source = self.get_test_bc()
m = parse_bitcode(MemoryBuffer(filename=source))
print m.target
print m.datalayout