re PR lto/49123 (FAIL: gcc.c-torture/execute/pr48973-[12].c)
authorJakub Jelinek <jakub@redhat.com>
Mon, 23 May 2011 20:38:17 +0000 (22:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 23 May 2011 20:38:17 +0000 (22:38 +0200)
PR lto/49123
* gcc.c-torture/execute/pr49123.c: New test.

From-SVN: r174088

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr49123.c [new file with mode: 0644]

index ff678fc1d679cba21a3ed7d236c798362d319fc9..39225a3eb4fb56e9fb51f5aa9ca50d08bd6e562a 100644 (file)
@@ -1,5 +1,8 @@
 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
 
+       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 (file)
index 0000000..2f1f793
--- /dev/null
@@ -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;
+}