aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/pr58431.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/pr58431.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/pr58431.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/pr58431.c b/SingleSource/Regression/C/gcc-c-torture/execute/pr58431.c
new file mode 100644
index 00000000..c5e5d468
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/pr58431.c
@@ -0,0 +1,33 @@
+char a, h;
+int b, d, e, g, j, k;
+volatile int c;
+short i;
+
+int
+main ()
+{
+ int m;
+
+ m = i ^= 1;
+ for (b = 0; b < 1; b++)
+ {
+ char o = m;
+ g = k;
+ j = j || c;
+ if (a != o)
+ for (; d < 1; d++)
+ ;
+ else
+ {
+ char *p = &h;
+ *p = 1;
+ for (; e; e++)
+ ;
+ }
+ }
+
+ if (h != 0)
+ __builtin_abort();
+
+ return 0;
+}