[llvm-commits] [llvm] r45936 - /llvm/trunk/test/CFrontend/2008-01-11-ChainConsistency.c
Duncan Sands
baldrick at free.fr
Sun Jan 13 10:44:12 PST 2008
Author: baldrick
Date: Sun Jan 13 12:44:12 2008
New Revision: 45936
URL: http://llvm.org/viewvc/llvm-project?rev=45936&view=rev
Log:
Check that nested functions don't get pointless
static chains.
Added:
llvm/trunk/test/CFrontend/2008-01-11-ChainConsistency.c
Added: llvm/trunk/test/CFrontend/2008-01-11-ChainConsistency.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2008-01-11-ChainConsistency.c?rev=45936&view=auto
==============================================================================
--- llvm/trunk/test/CFrontend/2008-01-11-ChainConsistency.c (added)
+++ llvm/trunk/test/CFrontend/2008-01-11-ChainConsistency.c Sun Jan 13 12:44:12 2008
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc -S %s -o - -fnested-functions | not grep nest
+
+void n1(void) { void a(void) { a(); } a(); }
More information about the llvm-commits
mailing list