aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@gcc.gnu.org>2015-01-22 01:37:17 +0100
committerSegher Boessenkool <segher@gcc.gnu.org>2015-01-22 01:37:17 +0100
commitfad513aa8881cc181c6a5601c3de9fac3a84e05e (patch)
tree2b462202af4267f488ae5aa811331caf9759b11d
parentc8b90a13c729f6fb33a97c4f4cd8116e5ef7fdf1 (diff)
downloadgcc-fad513aa8881cc181c6a5601c3de9fac3a84e05e.zip
gcc-fad513aa8881cc181c6a5601c3de9fac3a84e05e.tar.gz
gcc-fad513aa8881cc181c6a5601c3de9fac3a84e05e.tar.bz2
Add file I missed. Whoops.
From-SVN: r219982
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr64682.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr64682.c b/gcc/testsuite/gcc.c-torture/execute/pr64682.c
new file mode 100644
index 0000000..58f610a
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/pr64682.c
@@ -0,0 +1,26 @@
+/* PR rtl-optimization/64682 */
+
+int a, b = 1;
+
+__attribute__((noinline, noclone)) void
+foo (int x)
+{
+ if (x != 5)
+ __builtin_abort ();
+}
+
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 56; i++)
+ for (; a; a--)
+ ;
+ int *c = &b;
+ if (*c)
+ *c = 1 % (unsigned int) *c | 5;
+
+ foo (b);
+
+ return 0;
+}