* tests/test-verify.c (gx): Rename global from "x". Adjust use.
(enum): Capitalize member names. Adjust uses.
+2020-09-19 Jim Meyering <meyering@fb.com>
+
+ test-verify.c: avoid -Wshadow warnings
+ * tests/test-verify.c (gx): Rename global from "x". Adjust use.
+ (enum): Capitalize member names. Adjust uses.
+
2020-09-19 Bruno Haible <bruno@clisp.org>
havelib: Avoid linking with libc.a on GNU systems.
/* ======================= Test verify, verify_expr ======================= */
-int x;
-enum { a, b, c };
+int gx;
+enum { A, B, C };
#if EXP_FAIL == 1
-verify (x >= 0); /* should give ERROR: non-constant expression */
+verify (gx >= 0); /* should give ERROR: non-constant expression */
#endif
-verify (c == 2); /* should be ok */
+verify (C == 2); /* should be ok */
#if EXP_FAIL == 2
verify (1 + 1 == 3); /* should give ERROR */
#endif
#if EXP_FAIL == 3
verify (n >= 0); /* should give ERROR: non-constant expression */
#endif
- verify (c == 2); /* should be ok */
+ verify (C == 2); /* should be ok */
#if EXP_FAIL == 4
verify (1 + 1 == 3); /* should give ERROR */
#endif