aboutsummaryrefslogtreecommitdiff
path: root/tests/tcctest.c
diff options
context:
space:
mode:
authorjiang <30155751@qq.com>2014-05-16 12:15:00 +0800
committerjiang <30155751@qq.com>2014-05-16 12:15:00 +0800
commit52891b6ff680a03c966776b530cf94de9f831b07 (patch)
treed2b07f4d0a011859d1b20e98c3142bdc244ca6a6 /tests/tcctest.c
parent5a514107c420bd8dd724c27d1e7e905571a6aba5 (diff)
downloadtinycc-52891b6ff680a03c966776b530cf94de9f831b07.tar.gz
tinycc-52891b6ff680a03c966776b530cf94de9f831b07.tar.bz2
fix push_macro, asked Tom to help me testfix push_macro
Diffstat (limited to 'tests/tcctest.c')
-rw-r--r--tests/tcctest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c
index 3a62354..3fc7b82 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -383,7 +383,14 @@ comment
#define MACRO_TEST "macro_test1\n"
#pragma push_macro("MACRO_TEST")
#undef MACRO_TEST
+
#define MACRO_TEST "macro_test2\n"
+ #pragma push_macro("MACRO_TEST")
+ #undef MACRO_TEST
+
+ #define MACRO_TEST "macro_test3\n"
+ printf(MACRO_TEST);
+ #pragma pop_macro("MACRO_TEST")
printf(MACRO_TEST);
#pragma pop_macro("MACRO_TEST")
printf(MACRO_TEST);