aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/20040820-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/20040820-1.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/20040820-1.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/20040820-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/20040820-1.c
new file mode 100644
index 00000000..366607c8
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/20040820-1.c
@@ -0,0 +1,24 @@
+/* PR rtl-optimization/17099 */
+
+extern void exit (int);
+extern void abort (void);
+
+void
+check (int a)
+{
+ if (a != 1)
+ abort ();
+}
+
+void
+test (int a, int b)
+{
+ check ((a ? 1 : 0) | (b ? 2 : 0));
+}
+
+int
+main (void)
+{
+ test (1, 0);
+ exit (0);
+}