aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/python/llvm/tests
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-09-11 00:23:10 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-09-11 00:23:10 +0000
commit6a63cd12813fea01d711f098126d199c936c8f6b (patch)
treeb997c3d962152aa966697638aa7e61a0ce1af120 /bindings/python/llvm/tests
parent8184ca673bbc23d55f17d903f98f5382f2b7da79 (diff)
downloadexternal_llvm-6a63cd12813fea01d711f098126d199c936c8f6b.zip
external_llvm-6a63cd12813fea01d711f098126d199c936c8f6b.tar.gz
external_llvm-6a63cd12813fea01d711f098126d199c936c8f6b.tar.bz2
[python-bindings] Added bindings for LLVMContextRef and a test for creating a new context or getting the global context.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/llvm/tests')
-rw-r--r--bindings/python/llvm/tests/test_core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/python/llvm/tests/test_core.py b/bindings/python/llvm/tests/test_core.py
index 3fdaf45..3364a66 100644
--- a/bindings/python/llvm/tests/test_core.py
+++ b/bindings/python/llvm/tests/test_core.py
@@ -2,6 +2,7 @@ from .base import TestBase
from ..core import OpCode
from ..core import MemoryBuffer
from ..core import PassRegistry
+from ..core import Context
class TestCore(TestBase):
def test_opcode(self):
@@ -29,3 +30,6 @@ class TestCore(TestBase):
def test_create_passregistry(self):
PassRegistry()
+
+ def test_create_context(self):
+ Context.GetGlobalContext()