mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
added more #elif tests
This commit is contained in:
parent
621b3fc3b5
commit
d2c9157388
11
tcctest.c
11
tcctest.c
@ -66,6 +66,16 @@ int isid(int c);
|
||||
#undef AAA
|
||||
#define AAA 4
|
||||
|
||||
#if 1
|
||||
#define B3 1
|
||||
#elif 1
|
||||
#define B3 2
|
||||
#elif 0
|
||||
#define B3 3
|
||||
#else
|
||||
#define B3 4
|
||||
#endif
|
||||
|
||||
void macro_test()
|
||||
{
|
||||
printf("macro:\n");
|
||||
@ -78,6 +88,7 @@ void macro_test()
|
||||
printf("s2=%s\n", xglue(HIGH, LOW));
|
||||
printf("s3=%s\n", str("c"));
|
||||
printf("s4=%s\n", str(a1));
|
||||
printf("B3=%d\n", B3);
|
||||
|
||||
#ifdef A
|
||||
printf("A defined\n");
|
||||
|
Loading…
Reference in New Issue
Block a user