From: Jakub Jelinek Date: Thu, 16 Apr 2020 08:37:46 +0000 (+0200) Subject: testsuite: Move misplaced gcc.c-torture/pr92372.c test [PR92372] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9303fe0714c6cc2ff01bcfddd554d7d5057c32bd;p=gcc.git testsuite: Move misplaced gcc.c-torture/pr92372.c test [PR92372] This test got committed into a spot where nothing actually tests it. As there is no main, I assume it was meant to be gcc.c-torture/compile/ test and the test PASSes after moving there (both x86_64-linux and i686-linux). Though, it passed before the PR92372 fixes too. 2020-04-16 Jakub Jelinek PR ipa/92372 * gcc.c-torture/pr92372.c: Move ... * gcc.c-torture/compile/pr92372.c: ... here. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 545a7f66a3e..98fad24d053 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2020-04-16 Jakub Jelinek + PR ipa/92372 + * gcc.c-torture/pr92372.c: Move ... + * gcc.c-torture/compile/pr92372.c: ... here. + PR c++/94571 * g++.dg/cpp1z/decomp51.C: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/pr92372.c b/gcc/testsuite/gcc.c-torture/compile/pr92372.c new file mode 100644 index 00000000000..72a13bb16f4 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr92372.c @@ -0,0 +1,16 @@ +int fn2(int); +int fn3(int); + +__attribute__((flatten)) +int fn1(int p1) +{ + int a = fn2(p1); + return fn3(a); +} +__attribute__((flatten)) +int fn4(int p1) +{ + int j = fn2(p1); + return fn3(j); +} + diff --git a/gcc/testsuite/gcc.c-torture/pr92372.c b/gcc/testsuite/gcc.c-torture/pr92372.c deleted file mode 100644 index 72a13bb16f4..00000000000 --- a/gcc/testsuite/gcc.c-torture/pr92372.c +++ /dev/null @@ -1,16 +0,0 @@ -int fn2(int); -int fn3(int); - -__attribute__((flatten)) -int fn1(int p1) -{ - int a = fn2(p1); - return fn3(a); -} -__attribute__((flatten)) -int fn4(int p1) -{ - int j = fn2(p1); - return fn3(j); -} -