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

From-SVN: r35434
This commit is contained in:
Jakub Jelinek 2000-08-02 22:46:32 +02:00 committed by Jakub Jelinek
parent 37620334d9
commit 2d57911678
2 changed files with 19 additions and 0 deletions

View File

@ -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.

View 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;
}