+Thu Jan 4 13:54:11 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * gcc.c-torture/execute/built-in-setjmp.c: New.
+
2001-01-03 Richard Henderson <rth@redhat.com>
* gcc.dg/940510-1.c: Update expected error wording.
--- /dev/null
+int buf[20];
+
+int
+main ()
+{
+ char *p = (char *) alloca (20);
+
+ strcpy (p, "test");
+
+ if (__builtin_setjmp (buf))
+ {
+ if (strcmp (p, "test") != 0)
+ abort ();
+
+ exit (0);
+ }
+
+ {
+ int *q = (int *) alloca (p[2] * sizeof (int));
+ int i;
+
+ for (i = 0; i < p[2]; i++)
+ q[i] = 0;
+
+ while (1)
+ sub2 ();
+ }
+}
+
+sub2 ()
+{
+ __builtin_longjmp (buf, 1);
+}