From 1fac17f2e7dafbbe2619bbd253dd7b957052f5e0 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 13 Jan 2008 18:44:12 +0000 Subject: 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 --- test/CFrontend/2008-01-11-ChainConsistency.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/CFrontend/2008-01-11-ChainConsistency.c (limited to 'test/CFrontend') 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(); } -- cgit v1.2.3-18-g5258