From fad513aa8881cc181c6a5601c3de9fac3a84e05e Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Thu, 22 Jan 2015 01:37:17 +0100 Subject: [PATCH] Add file I missed. Whoops. From-SVN: r219982 --- gcc/testsuite/gcc.c-torture/execute/pr64682.c | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/pr64682.c 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 00000000000..58f610a2cf4 --- /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; +} -- 2.30.2