summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr44555.c
blob: 6ba8e491971dc66b6412eaf0f8ac7a6cb377dc7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
struct a {
    char b[100];
};
int foo(struct a *a)
{
  if (&a->b)
    return 1;
  return 0;
}
extern void abort (void);
int main()
{
  if (foo((struct a *)0) != 0)
    abort ();
  return 0;
}