Fix parsing of function declarations with redundant parentheses around the declarator...
[cparser] / parsetest / cp_error040.c
index 37aa285..1c66d8f 100644 (file)
@@ -1,7 +1,11 @@
-extern int a;     // this should reference an "a" defined in another file
-static int a;
+long ret42(void)
+{
+  long retval;
+  __asm__("movl $42, %0"  : "=m" (retval));
+  return retval;
+}
 
 int main(void)
 {
-       return 0;
+       return ret42() != 42;
 }