mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
[python-bindings] Added test for reading a module from bitcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190467 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b389cb74e
commit
a1e366058b
15
bindings/python/llvm/tests/test_bitreader.py
Normal file
15
bindings/python/llvm/tests/test_bitreader.py
Normal 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
|
Loading…
x
Reference in New Issue
Block a user