From: Segher Boessenkool Date: Thu, 22 Jan 2015 00:37:17 +0000 (+0100) Subject: Add file I missed. Whoops. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fad513aa8881cc181c6a5601c3de9fac3a84e05e;p=gcc.git Add file I missed. Whoops. From-SVN: r219982 --- 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; +}