]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Sema/address-constant.c
Vendor import of clang release_32 branch r168974 (effectively, 3.2 RC2):
[FreeBSD/FreeBSD.git] / test / Sema / address-constant.c
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3
4 int i;
5 int a[] = {0};
6 struct { int i; } s;
7
8 int *array[] = {&i, a, &s.i};
9
10 extern void f(void);
11 void (*f_addr)(void) = &f;