testsuite: Move misplaced gcc.c-torture/pr92372.c test [PR92372]
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Apr 2020 08:37:46 +0000 (10:37 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 16 Apr 2020 08:37:46 +0000 (10:37 +0200)
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  <jakub@redhat.com>

PR ipa/92372
* gcc.c-torture/pr92372.c: Move ...
* gcc.c-torture/compile/pr92372.c: ... here.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr92372.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/pr92372.c [deleted file]

index 545a7f66a3e091f5a91bc0de2163c5c202dfe900..98fad24d05393130162002ed2c94cb2b92574285 100644 (file)
@@ -1,5 +1,9 @@
 2020-04-16  Jakub Jelinek  <jakub@redhat.com>
 
+       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 (file)
index 0000000..72a13bb
--- /dev/null
@@ -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 (file)
index 72a13bb..0000000
+++ /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);
-}
-