summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20020129-1.c
blob: 7b17ba475e488a1876a13edf400495c65784ed74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test call to static variable.  */

typedef struct
{
  long long a[10];
} A;
  
void bar (A *);
  
typedef int (*B)(int);
  
void foo (void)
{
  static A a;
  bar (&a);
  (*(B)&a) (1);
}