* gcc.c-torture/compile/20000412-1.c: New test.

From-SVN: r33116
This commit is contained in:
Jeffrey A Law 2000-04-12 16:29:25 +00:00 committed by Jeff Law
parent 2c45f94b58
commit 46feb4ab1e
2 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Wed Apr 12 10:25:08 2000 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/20000412-1.c: New test.
* gcc.c-torture/execute/20000412-2.c: New test.
2000-04-12 Jakub Jelinek <jakub@redhat.com>

View File

@ -0,0 +1,16 @@
typedef struct {
short a;
short b;
} s1;
extern void g(unsigned char *b);
void f(void)
{
s1 a;
unsigned char *b;
a.a = 0;
b = (unsigned char *)&a;
g(b);
}