mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-06 15:20:18 +08:00
New testcase
From-SVN: r101968
This commit is contained in:
parent
d1f3352f2f
commit
20c861589a
30
gcc/testsuite/gcc.c-torture/compile/pr22422.c
Normal file
30
gcc/testsuite/gcc.c-torture/compile/pr22422.c
Normal file
@ -0,0 +1,30 @@
|
||||
/* We should not crash trying to figure out the points-to sets for the below. We used to because we
|
||||
ended up adding pointers to the points-to set of the ANYTHING variable. */
|
||||
struct D
|
||||
{
|
||||
int n;
|
||||
int c [8];
|
||||
};
|
||||
|
||||
struct A
|
||||
{
|
||||
int i;
|
||||
char *p;
|
||||
};
|
||||
|
||||
struct B
|
||||
{
|
||||
struct A *a;
|
||||
struct D *d;
|
||||
};
|
||||
|
||||
int dtInsert1 (struct B *b)
|
||||
{
|
||||
struct A a = { 0, 0 };
|
||||
struct D *d;
|
||||
b->a = &a;
|
||||
d = b->d;
|
||||
&d->c [d->n];
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user