aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-01-13 18:44:12 +0000
committerDuncan Sands <baldrick@free.fr>2008-01-13 18:44:12 +0000
commit565a609e655f6eb4d9b35be38ea44811e696ad30 (patch)
tree86e6b9652b6f2a8044d230a0a3660fdc18dfe69b /test/CFrontend
parent14f0b6f42fa27c1abf4fc4db63563dbe454aa5f0 (diff)
downloadexternal_llvm-565a609e655f6eb4d9b35be38ea44811e696ad30.zip
external_llvm-565a609e655f6eb4d9b35be38ea44811e696ad30.tar.gz
external_llvm-565a609e655f6eb4d9b35be38ea44811e696ad30.tar.bz2
Check that nested functions don't get pointless
static chains. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2008-01-11-ChainConsistency.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CFrontend/2008-01-11-ChainConsistency.c b/test/CFrontend/2008-01-11-ChainConsistency.c
new file mode 100644
index 0000000..13e48a3
--- /dev/null
+++ b/test/CFrontend/2008-01-11-ChainConsistency.c
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc -S %s -o - -fnested-functions | not grep nest
+
+void n1(void) { void a(void) { a(); } a(); }