From 1e465df22f312a3661d70fc15b1a55dc97ebfce8 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 25 Aug 2008 20:08:27 +0000 Subject: [PATCH] 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 --- test/Sema/init.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.50.1