1. Pypy
  2. Untitled project
  3. pypy

Commits

Brian Kearns  committed abc13a6

add a test for 65047c2

  • Participants
  • Parent commits 100529d
  • Branches default

Comments (0)

Files changed (1)

File rpython/translator/tool/test/test_cbuild.py

View file
  • Ignore whitespace
             int get()
             {
                 return 42;
+            }
+            int shouldnt_export()
+            {
+                return 43;
             }'''],
             export_symbols = ['get']
         )
         except ImportError:
             py.test.skip("Need ctypes for that test")
         assert ctypes.CDLL(neweci.libraries[0]).get() == 42
+        assert not hasattr(ctypes.CDLL(neweci.libraries[0]), 'shouldnt_export')
         assert not neweci.separate_module_sources
         assert not neweci.separate_module_files