aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr40204.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr40204.c')
-rw-r--r--gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr40204.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr40204.c b/gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr40204.c
new file mode 100644
index 000000000..3193284ff
--- /dev/null
+++ b/gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr40204.c
@@ -0,0 +1,14 @@
+/* PR middle-end/40204 */
+
+struct S
+{
+ unsigned int a : 4;
+ unsigned int b : 28;
+} s;
+char c;
+
+void
+f (void)
+{
+ s.a = (c >> 4) & ~(1 << 4);
+}