pr17252.c: Fix thinko.

* gcc.c-torture/execute/pr17252.c: Fix thinko.  Don't
	dereference garbage pointers.

From-SVN: r87545
This commit is contained in:
Diego Novillo 2004-09-15 12:09:55 +00:00 committed by Diego Novillo
parent 43e7c6a4d4
commit dad975d22d
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2004-09-15 Diego Novillo <dnovillo@redhat.com>
* gcc.c-torture/execute/pr17252.c: Fix thinko. Don't
dereference garbage pointers.
2004-09-15 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/builtins/strlen-3.c: New test.

View File

@ -5,14 +5,11 @@ char *a;
main ()
{
int i;
/* Make 'a' point to itself. */
a = (char *)&a;
/* Assign NULL to 'a' byte by byte. */
for (i = 0; i < sizeof(char *); i++)
a[i] = 0;
/* Change what 'a' is pointing to. */
a[0] = 0;
/* If a's memory tag does not contain 'a' in its alias set, we will
think that this predicate is superfluous and change it to