@@ -0,0 +1,5 @@
+int foo() {
+ return glob; // glob is not yet defined here
+}
+
+int glob;
@@ -1,7 +1,5 @@
void foo() {
- bar(glob); // Uses function and variable that are defined later than foo()
+ bar(); // Uses function that is defined later than foo()
}
-void bar(int a) {}
-
-int glob;
+void bar() {}