Skip to content

Commit

Permalink
[python-bindings] Added test for reading a module from bitcode.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190467 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gottesmm committed Sep 11, 2013
1 parent 3b389cb commit a1e3660
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bindings/python/llvm/tests/test_bitreader.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a1e3660

Please sign in to comment.