* gcc.c-torture/compile/20020109-2.c: New test.

From-SVN: r48701
This commit is contained in:
Alan Matsuoka 2002-01-09 23:53:25 +00:00 committed by Jeff Law
parent e05cd3dd3a
commit a4ae2fdc10
2 changed files with 34 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Wed Jan 9 16:48:33 2002 Alan Matsuoka (alanm@redhat.com)
* gcc.c-torture/compile/20020109-2.c: New test.
2002-01-09 Gwenole Beauchesne <bgeauchesne@mandrakesoft.com>
* gcc.c-torture/execute/loop-10.c: New test.

View File

@ -0,0 +1,30 @@
typedef union
{
unsigned char member3;
signed short member4;
unsigned int member5;
}
UNI02;
struct srt_dat_t
{
UNI02 un2;
unsigned long member1;
signed short member2;
};
struct srt_dat_t exsrt1;
void
extern_test (struct srt_dat_t arg1)
{
arg1.un2.member3++;
arg1.member1++;
arg1.member2++;
}
int
main (void)
{
extern_test (exsrt1);
return (0);
}