* gcc.c-torture/compile/20020109-2.c: New test.
From-SVN: r48701
This commit is contained in:
parent
e05cd3dd3a
commit
a4ae2fdc10
@ -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.
|
||||
|
30
gcc/testsuite/gcc.c-torture/compile/20020109-2.c
Normal file
30
gcc/testsuite/gcc.c-torture/compile/20020109-2.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user