aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/950714-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/950714-1.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/950714-1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/950714-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/950714-1.c
new file mode 100644
index 00000000..5dc44a90
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/950714-1.c
@@ -0,0 +1,17 @@
+int array[10] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
+
+main ()
+{
+ int i, j;
+ int *p;
+
+ for (i = 0; i < 10; i++)
+ for (p = &array[0]; p != &array[9]; p++)
+ if (*p == i)
+ goto label;
+
+ label:
+ if (i != 1)
+ abort ();
+ exit (0);
+}