add push_macro test again

This commit is contained in:
jiang
2014-05-16 15:44:51 +08:00
parent 52891b6ff6
commit 276553c6b2
2 changed files with 14 additions and 1 deletions

View File

@ -382,16 +382,29 @@ comment
/* macro_push and macro_pop test */
#define MACRO_TEST "macro_test1\n"
#pragma push_macro("MACRO_TEST")
printf(MACRO_TEST);
#undef MACRO_TEST
#define MACRO_TEST "macro_test2\n"
#pragma push_macro("MACRO_TEST")
printf(MACRO_TEST);
#undef MACRO_TEST
#define MACRO_TEST "macro_test3\n"
#pragma push_macro("MACRO_TEST")
printf(MACRO_TEST);
#undef MACRO_TEST
#define MACRO_TEST "macro_test4\n"
printf(MACRO_TEST);
#undef MACRO_TEST
#pragma pop_macro("MACRO_TEST")
printf(MACRO_TEST);
#pragma pop_macro("MACRO_TEST")
printf(MACRO_TEST);
#pragma pop_macro("MACRO_TEST")
printf(MACRO_TEST);
/* gcc does not support