* gcc.c-torture/compile/20000802-1.c: New test.
From-SVN: r35434
This commit is contained in:
parent
37620334d9
commit
2d57911678
@ -1,3 +1,7 @@
|
||||
2000-08-02 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.c-torture/compile/20000802-1.c: New test.
|
||||
|
||||
2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
|
||||
|
||||
* gcc.dg/cpp/macsyntx.c: Fix error regexp.
|
||||
|
15
gcc/testsuite/gcc.c-torture/compile/20000802-1.c
Normal file
15
gcc/testsuite/gcc.c-torture/compile/20000802-1.c
Normal file
@ -0,0 +1,15 @@
|
||||
struct foo {
|
||||
char a[3];
|
||||
char b;
|
||||
char c;
|
||||
};
|
||||
|
||||
struct foo bs;
|
||||
int x;
|
||||
char y[3];
|
||||
|
||||
void bar(void)
|
||||
{
|
||||
memcpy(bs.a, y, 3);
|
||||
bs.a[1] = ((x ? &bs.b : &bs.c) - (char *)&bs) - 2;
|
||||
}
|
Loading…
Reference in New Issue
Block a user