Parcourir la source

Initialised vars in testcase.

Avoids uninitialised var warnings/errors.
Simon Polstra il y a 10 ans
Parent
commit
e911b0971d
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      civic
  2. 3 3
      test/basic/check_success/parse_all.cvc

+ 1 - 1
civic

@@ -1 +1 @@
-Subproject commit 7df0a4f73193aea2923cd33f687c2e38585bbbfd
+Subproject commit 418598a8041ed40689f4c2cc5009df053e99cca0

+ 3 - 3
test/basic/check_success/parse_all.cvc

@@ -21,9 +21,9 @@ export int main() {
     // regular vardec
     bool uninitialized;
     int i;
-    int a;
-    int b;
-    int c;
+    int a = 0;
+    int b = 10;
+    int c = 1;
 
     // initialized vardec
     float initialized = 2.5;