From ca255ca2760a5e6176031ea62a9c29c7bb92c212 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 29 Jul 2024 16:47:09 +0100 Subject: testsuite: make PR115277 test an execute one PR middle-end/115277 * gcc.c-torture/compile/pr115277.c: Rename to... * gcc.c-torture/execute/pr115277.c: ...this. --- gcc/testsuite/gcc.c-torture/compile/pr115277.c | 28 -------------------------- gcc/testsuite/gcc.c-torture/execute/pr115277.c | 28 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 gcc/testsuite/gcc.c-torture/compile/pr115277.c create mode 100644 gcc/testsuite/gcc.c-torture/execute/pr115277.c (limited to 'gcc') diff --git a/gcc/testsuite/gcc.c-torture/compile/pr115277.c b/gcc/testsuite/gcc.c-torture/compile/pr115277.c deleted file mode 100644 index 27449eb..0000000 --- a/gcc/testsuite/gcc.c-torture/compile/pr115277.c +++ /dev/null @@ -1,28 +0,0 @@ -int array[1000]; -void -test (int a) -{ - if (__builtin_expect (a > 3, 1)) - return; - for (int i = 0; i < a; i++) - array[i]=i; -} -void -test2 (int a) -{ - if (__builtin_expect (a > 10, 1)) - return; - for (int i = 0; i < a; i++) - array[i]=i; -} -int -main() -{ - test(1); - test(2); - test(3); - test2(10); - if (array[9] != 9) - __builtin_abort (); - return 0; -} diff --git a/gcc/testsuite/gcc.c-torture/execute/pr115277.c b/gcc/testsuite/gcc.c-torture/execute/pr115277.c new file mode 100644 index 0000000..27449eb --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr115277.c @@ -0,0 +1,28 @@ +int array[1000]; +void +test (int a) +{ + if (__builtin_expect (a > 3, 1)) + return; + for (int i = 0; i < a; i++) + array[i]=i; +} +void +test2 (int a) +{ + if (__builtin_expect (a > 10, 1)) + return; + for (int i = 0; i < a; i++) + array[i]=i; +} +int +main() +{ + test(1); + test(2); + test(3); + test2(10); + if (array[9] != 9) + __builtin_abort (); + return 0; +} -- cgit v1.1