* gcc.c-torture/compile/20000412-1.c: New test.
From-SVN: r33116
This commit is contained in:
parent
2c45f94b58
commit
46feb4ab1e
@ -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>
|
||||
|
16
gcc/testsuite/gcc.c-torture/compile/20000412-1.c
Normal file
16
gcc/testsuite/gcc.c-torture/compile/20000412-1.c
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user