aboutsummaryrefslogtreecommitdiff
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
commit1fac17f2e7dafbbe2619bbd253dd7b957052f5e0 (patch)
tree86e6b9652b6f2a8044d230a0a3660fdc18dfe69b /test/CFrontend
parente3a8830c1d263b41ee114d7cb3fd50d240ec32b3 (diff)
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 0000000000..13e48a34ac
--- /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(); }