From 6b722eb36e89f6985331a92d9f3cb41fa4574522 Mon Sep 17 00:00:00 2001 From: ktkachov Date: Thu, 4 Feb 2016 09:51:35 +0000 Subject: [PATCH] [ARM][1/4] PR target/65932: Add testcase PR target/65932 PR target/67714 * gcc.c-torture/execute/pr67714.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233131 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.c-torture/execute/pr67714.c | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/pr67714.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a28ead2..5fca8e7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-02-04 Kyrylo Tkachov + + PR target/65932 + PR target/67714 + * gcc.c-torture/execute/pr67714.c: New test. + 2016-02-04 Ilya Enkovich PR target/69454 diff --git a/gcc/testsuite/gcc.c-torture/execute/pr67714.c b/gcc/testsuite/gcc.c-torture/execute/pr67714.c new file mode 100644 index 0000000..564c99e --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr67714.c @@ -0,0 +1,26 @@ +unsigned int b; +int c; + +signed char +fn1 () +{ + signed char d; + for (int i = 0; i < 1; i++) + d = -15; + return d; +} + +int +main (void) +{ + for (c = 0; c < 1; c++) + b = 0; + char e = fn1 (); + signed char f = e ^ b; + volatile int g = (int) f; + + if (g != -15) + __builtin_abort (); + + return 0; +} -- 2.7.4