aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/pr83477.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/pr83477.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/pr83477.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/pr83477.c b/SingleSource/Regression/C/gcc-c-torture/execute/pr83477.c
new file mode 100644
index 00000000..95c408be
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/pr83477.c
@@ -0,0 +1,20 @@
+int yf = 0;
+
+void
+pl (int q5, int nd)
+{
+ unsigned int hp = q5;
+ int zx = (q5 == 0) ? hp : (hp / q5);
+
+ yf = ((nd < 2) * zx != 0) ? nd : 0;
+}
+
+int
+main (void)
+{
+ pl (1, !yf);
+ if (yf != 1)
+ __builtin_abort ();
+
+ return 0;
+}