aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20020328-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20020328-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20020328-1.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20020328-1.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20020328-1.c
new file mode 100644
index 000000000..4b6f2bf4e
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20020328-1.c
@@ -0,0 +1,25 @@
+int b = 0;
+
+func () { }
+
+void
+testit(int x)
+{
+ if (x != 20)
+ abort ();
+}
+
+int
+main()
+
+{
+ int a = 0;
+
+ if (b)
+ func();
+
+ /* simplify_and_const_int would incorrectly omit the mask in
+ the line below. */
+ testit ((a + 23) & 0xfffffffc);
+ exit (0);
+}