In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20020122-1.c
blobb13752f6453ab48b8d3c3ea0bcfd830feaf580a2
1 /* Copyright (C) 2002 Free Software Foundation.
2 by Hans-Peter Nilsson <hp@axis.com> */
4 /* { dg-do compile } */
6 typedef struct
8 unsigned short s;
9 } t;
11 struct u
13 t v;
16 int
17 foo (struct u *uu)
19 int i = ((unsigned int) ((uu->v) & 42)); /* { dg-error "invalid operands to binary" } */
20 return i;