]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Fri, 22 Nov 2002 21:24:25 +0000 (21:24 +0000)
committerNo Author <no-author@gcc.gnu.org>
Fri, 22 Nov 2002 21:24:25 +0000 (21:24 +0000)
'gcc-3_2-branch'.

From-SVN: r59388

gcc/testsuite/gcc.c-torture/execute/20021118-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/_Pragma5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/i386-unroll-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/20021118-3.c b/gcc/testsuite/gcc.c-torture/execute/20021118-3.c
new file mode 100644 (file)
index 0000000..8ec01ca
--- /dev/null
@@ -0,0 +1,18 @@
+extern void abort (void);
+extern void exit (int);
+
+int
+foo (int x)
+{
+  if (x == -2 || -x - 100 >= 0)
+    abort ();
+  return 0;
+}
+           
+int
+main ()
+{
+  foo (-3);
+  foo (-99);
+  exit (0);
+}
diff --git a/gcc/testsuite/gcc.dg/cpp/_Pragma5.c b/gcc/testsuite/gcc.dg/cpp/_Pragma5.c
new file mode 100644 (file)
index 0000000..ace5041
--- /dev/null
@@ -0,0 +1,14 @@
+/* { dg-do preprocess } */
+
+/* Based on Debian GNATS PR 8524.  17 Nov 2002.  */
+
+#define ALPHA(A) alpha_ ## A
+#define BETA(B) beta_ ## B
+#define GAMMA(C) _Pragma("moose") ALPHA(C) BETA(C)
+GAMMA(baz);
+
+/*
+   { dg-final { if ![file exists _Pragma5.i] { return }                   } }
+   { dg-final { if { [grep _Pragma5.i "alpha_baz beta_baz;"] != "" } { return }  } }
+   { dg-final { fail "_Pragma5.c: _Pragma in macro"                       } }
+*/
diff --git a/gcc/testsuite/gcc.dg/i386-unroll-1.c b/gcc/testsuite/gcc.dg/i386-unroll-1.c
new file mode 100644 (file)
index 0000000..9aa2275
--- /dev/null
@@ -0,0 +1,17 @@
+/* PR optimization/8599 */
+/* { dg-do run { target i?86-*-* } } */
+/* { dg-options "-mcpu=k6 -O2 -funroll-loops" } */
+
+extern void exit (int);
+
+void *array[4];
+
+int main ()
+{
+  int i;
+  for (i = 0; i < 4; i++)
+    array[i] = 0;
+
+  exit (0);
+}