summaryrefslogtreecommitdiff
path: root/test/Sema/init.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-25 20:08:27 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-25 20:08:27 +0000
commit1e465df22f312a3661d70fc15b1a55dc97ebfce8 (patch)
tree4d037c7e903044fd970f4ec3802d4a9ea6d26ea7 /test/Sema/init.c
parent40aa8b2ec5aa81c21b56cb05816b2f672d0352df (diff)
downloadclang-1e465df22f312a3661d70fc15b1a55dc97ebfce8.tar.gz
Add test case for function-pointer-cast-of-global as constant
expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/init.c')
-rw-r--r--test/Sema/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/init.c b/test/Sema/init.c
index f6cf9c3971..964118ce02 100644
--- a/test/Sema/init.c
+++ b/test/Sema/init.c
@@ -54,3 +54,7 @@ int pbool(void) {
// rdar://5870981
union { float f; unsigned u; } u = { 1.0f };
+// rdar://6156694
+int f3(int x) { return x; }
+typedef void (*vfunc)(void);
+void *bar = (vfunc) f3;