From: Daniel Dunbar Date: Mon, 25 Aug 2008 20:08:27 +0000 (+0000) Subject: Add test case for function-pointer-cast-of-global as constant X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e465df22f312a3661d70fc15b1a55dc97ebfce8;p=clang 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 --- 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;