Author: mozbugbox <[email protected]>
Branch: define-integer-constant
Changeset: r1494:4c0b4f9eb00b
Date: 2014-04-04 17:43 +0800
http://bitbucket.org/cffi/cffi/changeset/4c0b4f9eb00b/

Log:    Add more test to "#define FOO 0X10"

diff --git a/testing/backend_tests.py b/testing/backend_tests.py
--- a/testing/backend_tests.py
+++ b/testing/backend_tests.py
@@ -1589,6 +1589,7 @@
             #define DOT 100
             #define DOT_OCT 0100l
             #define DOT_HEX 0x100u
+            #define DOT_HEX2 0X10
             #define DOT_UL 1000UL
             enum foo {AA, BB=DOT, CC};
         """)
@@ -1598,6 +1599,7 @@
         assert lib.DOT == 100
         assert lib.DOT_OCT == 0o100
         assert lib.DOT_HEX == 0x100
+        assert lib.DOT_HEX2 == 0x10
         assert lib.DOT_UL == 1000
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to