mirror of https://github.com/rui314/chibicc
Add `long long` as an alias for `long`
This commit is contained in:
parent
287906abb8
commit
f46370ef98
2
parse.c
2
parse.c
|
@ -271,6 +271,8 @@ static Type *declspec(Token **rest, Token *tok) {
|
|||
break;
|
||||
case LONG:
|
||||
case LONG + INT:
|
||||
case LONG + LONG:
|
||||
case LONG + LONG + INT:
|
||||
ty = ty_long;
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -8,6 +8,8 @@ int main() {
|
|||
ASSERT(8, ({ long int x; sizeof(x); }));
|
||||
ASSERT(8, ({ int long x; sizeof(x); }));
|
||||
|
||||
ASSERT(8, ({ long long x; sizeof(x); }));
|
||||
|
||||
printf("OK\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue