aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/address-constant.c
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2008-04-04 09:45:30 +0000
committerSeo Sanghyeon <sanxiyn@gmail.com>2008-04-04 09:45:30 +0000
commit63f067f5a75ae97b53dc7a6a6530e2c72c8bb7f8 (patch)
treee4264e428a41548cda94d6db78d542090cab2bc6 /test/Sema/address-constant.c
parent730f2c13e8ff0a2a3cc54fce9913add68107cb51 (diff)
PR1963: Address of function is a constant expression
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/address-constant.c')
-rw-r--r--test/Sema/address-constant.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/address-constant.c b/test/Sema/address-constant.c
index 0b451cc39c..e1704b8b0e 100644
--- a/test/Sema/address-constant.c
+++ b/test/Sema/address-constant.c
@@ -5,3 +5,6 @@ int a[] = {0};
struct { int i; } s;
int *array[] = {&i, a, &s.i};
+
+extern void f(void);
+void (*f_addr)(void) = &f;