From 7b6ca93b2d57ead352cd5cc3e10be4c33dda674b Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 29 Mar 2021 20:59:42 +0200 Subject: Fix pr99751.c testcase PR ipa/99751 * gcc.c-torture/compile/pr99751.c: Rename from ... * gcc.c-torture/execute/pr99751.c: ... to this. --- gcc/testsuite/gcc.c-torture/compile/pr99751.c | 20 -------------------- gcc/testsuite/gcc.c-torture/execute/pr99751.c | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 gcc/testsuite/gcc.c-torture/compile/pr99751.c create mode 100644 gcc/testsuite/gcc.c-torture/execute/pr99751.c (limited to 'gcc') diff --git a/gcc/testsuite/gcc.c-torture/compile/pr99751.c b/gcc/testsuite/gcc.c-torture/compile/pr99751.c deleted file mode 100644 index f1d5101..0000000 --- a/gcc/testsuite/gcc.c-torture/compile/pr99751.c +++ /dev/null @@ -1,20 +0,0 @@ -int *ptr1 = 0, **ptr2 = &ptr1; - -int *identity(int *p) -{ - return p; -} - -void store_to_c(int *p) -{ - *ptr2 = identity(p); -} - -int main() -{ - int f; - store_to_c(&f); - if (ptr1 != &f) - __builtin_abort(); - return 0; -} diff --git a/gcc/testsuite/gcc.c-torture/execute/pr99751.c b/gcc/testsuite/gcc.c-torture/execute/pr99751.c new file mode 100644 index 0000000..f1d5101 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr99751.c @@ -0,0 +1,20 @@ +int *ptr1 = 0, **ptr2 = &ptr1; + +int *identity(int *p) +{ + return p; +} + +void store_to_c(int *p) +{ + *ptr2 = identity(p); +} + +int main() +{ + int f; + store_to_c(&f); + if (ptr1 != &f) + __builtin_abort(); + return 0; +} -- cgit v1.1