69,377
社区成员
发帖
与我相关
我的任务
分享
/* file: e1.c
* gcc -Wall -std=c89 -o e1 e1.c
* gcc -Wall -std=c99 -o e1 e1.c
*
*/
#include <stdio.h>
static void my_test(int x);
int main() {
printf(" %2x\n", ({int x; x = 3; x;}));
my_test(({int x; x = 3; x;}));
return 0;
}
void my_test(int x) {
printf("my_test: %d\n", x);
}
[XXXX-laptop: asm]$ gcc -std=c99 -pedantic -o e1 e1.c
e1.c: In function ‘main’:
e1.c:12: warning: ISO C forbids braced-groups within expressions
e1.c:14: warning: ISO C forbids braced-groups within expressions