我的环境是
windows xp sp3’微软(R)32位C/C++优化编译器版本14.00.50727.762 for 80×86′,流程如下:
F:\workshop\vc8proj\console>type t.c
int main(void) {
// do some thing.
{
int i;
{
i = 3;
goto abc111;
}
abc111:
}
return 0;
}
F:\workshop\vc8proj\console>cl /MD t.c Microsoft (R) 32-bit C/C++
Optimizing Compiler Version 14.00.50727.762 for 80×86
Copyright (C) Microsoft Corporation. All rights reserved.
t.c t.c(10) : error C2143: syntax error : missing ‘;’ before ‘}’
F:\workshop\vc8proj\console>vim t.c
F:\workshop\vc8proj\console>type t.c
int main(void) {
// do some thing.
{
int i;
{
i = 3;
goto abc111;
}
abc111: 5201314;
}
return 0;
}
F:\workshop\vc8proj\console>cl /MD t.c Microsoft (R) 32-bit C/C++
Optimizing Compiler Version 14.00.50727.762 for 80×86
Copyright (C) Microsoft Corporation. All rights reserved.
t.c Microsoft (R) Incremental Linker Version 8.00.50727.762 Copyright
(C) Microsoft Corporation. All rights reserved.
/out:t.exe t.obj
F:\workshop\vc8proj\console>
在Linux操作系统下同样的情况呢???