aboutsummaryrefslogtreecommitdiff
path: root/tests/tcctest.c
diff options
context:
space:
mode:
authorgrischka <grischka>2016-10-09 20:33:14 +0200
committergrischka <grischka>2016-10-09 20:33:14 +0200
commit71b16f4e18b2794b76cc80cb7d0303243656b050 (patch)
treeafee8de56f0213d74b8404f66c4b9fd62a238730 /tests/tcctest.c
parent78c08898aeb88ae3f8e6a775532a49712188875a (diff)
downloadtinycc-71b16f4e18b2794b76cc80cb7d0303243656b050.tar.gz
tinycc-71b16f4e18b2794b76cc80cb7d0303243656b050.tar.bz2
tccpp : "tcc -E -P" : suppress empty lines
Also: - regenerate all tests/pp/*.expect with gcc - test "insert one space" feature - test "0x1E-1" in asm mode case - PARSE_FLAG_SPACES: ignore \f\v\r better - tcc.h: move some things
Diffstat (limited to 'tests/tcctest.c')
-rw-r--r--tests/tcctest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c
index e55dc05..abe15f8 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -2573,6 +2573,10 @@ void asm_test(void)
unsigned int val;
printf("inline asm:\n");
+
+ // parse 0x1E-1 as 3 tokens in asm mode
+ asm volatile ("mov $0x1E-1,%eax");
+
/* test the no operand case */
asm volatile ("xorl %eax, %eax");