Correct asm_test4.c, it only worked by pure chance on gcc.
[libfirm] / ir / be / test / asm_test4.c
1 unsigned long get_sp(void)
2 {
3         unsigned long esp;
4         __asm__("movl %%esp, %0" : "=mr" (esp));
5         return esp;
6 }
7
8 int main(void) {
9         printf("stack pointer available: %d\n", get_sp() > 42);
10         return 0;
11 }