removed C99 features
[libfirm] / ir / be / test / fehler83.c
index 56e959f..b7eda5f 100644 (file)
@@ -5,9 +5,13 @@
 static char parens[] = "=!<,>";
 static char *p = & parens[2];
 
+int f(void)
+{
+       return (p - parens) % 2 ? 42 : 13;
+}
+
 int main(void)
 {
-       int n = ((p - parens) % 2) ? 42 : 13;
-       printf("Res: %d (should be 13)\n", n);
+       printf("Res: %d (should be 13)\n", f());
        return 0;
 }