diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/regression/Results/funptr2 | 2 | ||||
-rw-r--r-- | test/regression/funptr2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/regression/Results/funptr2 b/test/regression/Results/funptr2 index f364c59a..9574355f 100644 --- a/test/regression/Results/funptr2 +++ b/test/regression/Results/funptr2 @@ -1,3 +1,3 @@ f == f is 1 f == g is 0 -f + 1 == f is 0 +f + 2 == f is 0 diff --git a/test/regression/funptr2.c b/test/regression/funptr2.c index 5c31dd2d..8086eae1 100644 --- a/test/regression/funptr2.c +++ b/test/regression/funptr2.c @@ -9,6 +9,6 @@ int main(void) { printf ("f == f is %d\n", &f == &f); printf ("f == g is %d\n", &f == &g); /* The following is undefined behavior */ - printf ("f + 1 == f is %d\n", ((char *) &f) + 1 == (char *) &f); + printf ("f + 2 == f is %d\n", ((char *) &f) + 2 == (char *) &f); return 0; } |