newer version of tcc almost working
This commit is contained in:
parent
c42c5d94b8
commit
826d1afd58
442 changed files with 90400 additions and 24506 deletions
41
05/tcc-0.9.27/tests/tests2/76_dollars_in_identifiers.c
Normal file
41
05/tcc-0.9.27/tests/tests2/76_dollars_in_identifiers.c
Normal file
|
@ -0,0 +1,41 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#define $(x) x
|
||||
#define $fred 10
|
||||
#define joe$ 20
|
||||
#define hen$y 30
|
||||
|
||||
#define $10(x) x*10
|
||||
#define _$10(x) x/10
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("fred=%d\n", $fred);
|
||||
printf("joe=%d\n", joe$);
|
||||
printf("henry=%d\n", hen$y);
|
||||
|
||||
printf("fred2=%d\n", $($fred));
|
||||
printf("joe2=%d\n", $(joe$));
|
||||
printf("henry2=%d\n", $(hen$y));
|
||||
|
||||
printf("fred10=%d\n", $10($fred));
|
||||
printf("joe_10=%d\n", _$10(joe$));
|
||||
|
||||
int $ = 10;
|
||||
int a100$ = 100;
|
||||
int a$$ = 1000;
|
||||
int a$c$b = 2121;
|
||||
int $100 = 10000;
|
||||
const char *$$$ = "money";
|
||||
|
||||
printf("local=%d\n", $);
|
||||
printf("a100$=%d\n", a100$);
|
||||
printf("a$$=%d\n", a$$);
|
||||
printf("a$c$b=%d\n", a$c$b);
|
||||
printf("$100=%d\n", $100);
|
||||
printf("$$$=%s", $$$);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/
|
Loading…
Add table
Add a link
Reference in a new issue