X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-verify.c;h=454f4f456c558e0caddfb830b4a7f1e5619944fd;hb=e91216b238f2af78257bd943db0b22b289d172cc;hp=47eae2b4f3677d936546a8d2e855c96b2c77e297;hpb=f4b47c930f982b18171125685444194c66ecc139;p=gnulib.git diff --git a/tests/test-verify.c b/tests/test-verify.c index 47eae2b4f..454f4f456 100644 --- a/tests/test-verify.c +++ b/tests/test-verify.c @@ -1,6 +1,6 @@ /* Test the "verify" module. - Copyright (C) 2005, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2005, 2009-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -42,7 +42,8 @@ enum item = verify_true (1 == 1) * 0 + 17 /* should be ok */ }; -int function (int n) +static int +function (int n) { #if EXP_FAIL == 3 verify (n >= 0); /* should give ERROR: non-constant expression */ @@ -54,9 +55,9 @@ int function (int n) verify (1 == 1); verify (1 == 1); /* should be ok */ if (n) - return ((void) verify_true (1 == 1), verify_true (1 == 1) + 7); /* should be ok */ + return ((void) verify_expr (1 == 1, 1), verify_expr (1 == 1, 8)); /* should be ok */ #if EXP_FAIL == 5 - return (verify_true (1 == 2), 5); /* should give ERROR */ + return verify_expr (1 == 2, 5); /* should give ERROR */ #endif return 0; }