1 2 3 4 5 6 7 8 | #include <stdio.h> int foo(){ return 1; } int main(void) { static int q = foo(); return 0; } |
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBmb28oKXsKICAgIHJldHVybiAxOwp9CmludCBtYWluKHZvaWQpIHsKICAgIHN0YXRpYyBpbnQgcSA9IGZvbygpOyAKICAgIHJldHVybiAwOwp9
prog.c: In function ‘main’: prog.c:6: error: initializer element is not constant prog.c:6: warning: unused variable ‘q’
-
result: Compilation error (maybe you wish to see an example for C)


