summaryrefslogtreecommitdiffstats
path: root/test/Sema/address-constant.c
blob: e842a7396b8d8860be7bfc5ee417264d175a926b (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -fsyntax-only -verify %s

int i;
int a[] = {0};
struct { int i; } s;

int *array[] = {&i, a, &s.i};

extern void f(void);
void (*f_addr)(void) = &f;