* gcc.dg/20020122-1.c: New test.
From-SVN: r49065
This commit is contained in:
parent
f982f8052a
commit
0c0c3c3995
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
21
gcc/testsuite/gcc.dg/20020122-1.c
Normal file
21
gcc/testsuite/gcc.dg/20020122-1.c
Normal file
@ -0,0 +1,21 @@
|
||||
/* 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user