On 5/26/05, David A. Wheeler <[EMAIL PROTECTED]> wrote:
> TEST 1:
> First, here's a trivial program you can compile with tcc 0.9.22:
> 
> main() {
>    printf("First");
>    double a = 0.0;
>    printf("Second");
> }

thats violating c syntax, you're supposed to declare variables before
code inside curvey brackets {}
Also main is supposed to be declared "int main(int argc, char
*argv[])", and actually return a value.
Is the odd behaviour still there after the test case is syntactically correct?
(personally I think theres lots of lurker bugs and you've probably found one)

e.g.:

int main(int argc, char *argv[]) {
    double a;
    printf("First");
    a = 0.0;
    printf("Second");
    return 0;
}

Jesse


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to