Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r147:6b080d10e199 Date: 2014-12-04 13:22 +0100 http://bitbucket.org/cffi/creflect/changeset/6b080d10e199/
Log: a test diff --git a/creflect/test/codegen/003j.c b/creflect/test/codegen/003j.c new file mode 100644 --- /dev/null +++ b/creflect/test/codegen/003j.c @@ -0,0 +1,18 @@ +typedef _Bool num_t; + +# ____________________________________________________________ + +void test003j(_crx_builder_t *cb) +{ + _crx_type_t *t1; + { + num_t *p1; + char b[sizeof(*p1)]; + p1 = (void *)b; + (void)(*p1 << 1); /* check that 'num_t' is an integer type */ + *p1 = -1; /* check that 'num_t' is not declared 'const' */ + t1 = _CRX_INT_TYPE(cb, *p1, _crx_sc_char); + cb->define_type(cb, "num_t", t1, 0); +#expect TYPEDEF num_t = _Bool + } +} _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit