From 0f6e664b85c971f7550db62f490ea7e261d40307 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 23 May 2011 22:38:17 +0200 Subject: [PATCH] re PR lto/49123 (FAIL: gcc.c-torture/execute/pr48973-[12].c) PR lto/49123 * gcc.c-torture/execute/pr49123.c: New test. From-SVN: r174088 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/gcc.c-torture/execute/pr49123.c | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/pr49123.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ff678fc1d67..39225a3eb4f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2011-05-23 Jakub Jelinek + PR lto/49123 + * gcc.c-torture/execute/pr49123.c: New test. + PR debug/49032 * gcc.dg/debug/pr49032.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/pr49123.c b/gcc/testsuite/gcc.c-torture/execute/pr49123.c new file mode 100644 index 00000000000..2f1f7935d3c --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr49123.c @@ -0,0 +1,14 @@ +/* PR lto/49123 */ + +extern void abort (void); +static struct S { int f : 1; } s; +static int v = -1; + +int +main () +{ + s.f = v < 0; + if ((unsigned int) s.f != -1U) + abort (); + return 0; +} -- 2.30.2