[cfe-commits] r55323 - /cfe/trunk/test/Sema/init.c
Daniel Dunbar
daniel at zuster.org
Mon Aug 25 13:08:34 PDT 2008
Author: ddunbar
Date: Mon Aug 25 15:08:27 2008
New Revision: 55323
URL: http://llvm.org/viewvc/llvm-project?rev=55323&view=rev
Log:
Add test case for function-pointer-cast-of-global as constant
expression.
Modified:
cfe/trunk/test/Sema/init.c
Modified: cfe/trunk/test/Sema/init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/init.c?rev=55323&r1=55322&r2=55323&view=diff
==============================================================================
--- cfe/trunk/test/Sema/init.c (original)
+++ cfe/trunk/test/Sema/init.c Mon Aug 25 15:08:27 2008
@@ -54,3 +54,7 @@
// 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;
More information about the cfe-commits
mailing list