diff options
Diffstat (limited to 'clang/test/Sema/address-constant.c')
-rw-r--r-- | clang/test/Sema/address-constant.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Sema/address-constant.c b/clang/test/Sema/address-constant.c new file mode 100644 index 0000000..e842a73 --- /dev/null +++ b/clang/test/Sema/address-constant.c @@ -0,0 +1,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; |