mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-05 04:40:06 +08:00
0c8447db79
* give warning if pragma is unknown for tcc * don't free asm_label in sym_free(), it's a job of the asm_free_labels(). The above pragmas are used in the mingw headers. Thise pragmas are implemented in gcc-4.5+ and current clang.
24 lines
446 B
C
24 lines
446 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
#define abort "111"
|
|
printf("abort = %s\n", abort);
|
|
|
|
#pragma push_macro("abort")
|
|
#undef abort
|
|
#define abort "222"
|
|
printf("abort = %s\n", abort);
|
|
|
|
#pragma push_macro("abort")
|
|
#undef abort
|
|
#define abort "333"
|
|
printf("abort = %s\n", abort);
|
|
|
|
#pragma pop_macro("abort")
|
|
printf("abort = %s\n", abort);
|
|
|
|
#pragma pop_macro("abort")
|
|
printf("abort = %s\n", abort);
|
|
}
|