+2002-01-22 Hans-Peter Nilsson <hp@axis.com>
+
+ * gcc.dg/20020122-1.c: New test.
+
2001-01-22 David.Billinghurst <David.Billinghurst@riotinto.com>
* g++.old-deja/g++.ext/attrib5.C: XFAIL cygwin too
--- /dev/null
+/* Copyright (C) 2002 Free Software Foundation.
+ by Hans-Peter Nilsson <hp@axis.com> */
+
+/* { dg-do compile } */
+
+typedef struct
+ {
+ unsigned short s;
+ } t;
+
+struct u
+ {
+ t v;
+ };
+
+int
+foo (struct u *uu)
+{
+ int i = ((unsigned int) ((uu->v) & 42)); /* { dg-error "invalid operands to binary" } */
+ return i;
+}