]> granicus.if.org Git - clang/commitdiff
Add test case for function-pointer-cast-of-global as constant
authorDaniel Dunbar <daniel@zuster.org>
Mon, 25 Aug 2008 20:08:27 +0000 (20:08 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 25 Aug 2008 20:08:27 +0000 (20:08 +0000)
expression.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55323 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/init.c

index f6cf9c3971f4635c3d7bfb06885df1592eec2394..964118ce021cba4f47a0acb8ef2641e1318cc7cd 100644 (file)
@@ -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;