tinycc-devel
[
Top
][
All Lists
]
Advanced
[
Date Prev
][Date Next][
Thread Prev
][Thread Next][
Date Index
][
Thread Index
]
[Tinycc-devel] Can not work on the typeof a extern varaible
From
:
Hanzac Chen
Subject
:
[Tinycc-devel] Can not work on the typeof a extern varaible
Date
:
Thu, 30 Apr 2009 13:29:04 +0800
Hi,
It reports an error when using typeof keyword on a extern variable.
e.g.
#include <stdio.h>
extern int a;
int main(void)
{
__typeof__(a) b = 0;
printf("%d\n", b);
return 0;
}
The output:
C:\tcc>tcc -c test_typeof.c
test_typeof.c:7: ';' expected
while gcc can compile this file.
Regards,
Hanzac
reply via email to
[Prev in Thread]
Current Thread
[Next in Thread]
[Tinycc-devel] Can not work on the typeof a extern varaible
,
Hanzac Chen
<=
Prev by Date:
Re: [Tinycc-devel] split tcc.c
Previous by thread:
[Tinycc-devel] Re: Tinycc-devel Digest, Vol 72, Issue 27
Index(es):
Date
Thread