mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-29 06:57:58 -04:00
26 lines
397 B
C
26 lines
397 B
C
$NetBSD$
|
|
|
|
--- gcc/testsuite/gcc.c-torture/execute/pr48973-1.c.orig Wed May 21 19:48:58 2014
|
|
+++ gcc/testsuite/gcc.c-torture/execute/pr48973-1.c
|
|
@@ -0,0 +1,20 @@
|
|
+/* PR middle-end/48973 */
|
|
+
|
|
+extern void abort (void);
|
|
+struct S { int f : 1; } s;
|
|
+int v = -1;
|
|
+
|
|
+void
|
|
+foo (unsigned int x)
|
|
+{
|
|
+ if (x != -1U)
|
|
+ abort ();
|
|
+}
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+ s.f = (v & 1) > 0;
|
|
+ foo (s.f);
|
|
+ return 0;
|
|
+}
|