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

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

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

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