From 0b85642898bd81209e56e8098c065e2975d455a0 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 29 May 2008 19:17:15 +0000 Subject: For PR1338: Rename test dirs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51695 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC/nested-functions.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/FrontendC/nested-functions.c (limited to 'test/FrontendC/nested-functions.c') diff --git a/test/FrontendC/nested-functions.c b/test/FrontendC/nested-functions.c new file mode 100644 index 0000000000..bccbef3dbd --- /dev/null +++ b/test/FrontendC/nested-functions.c @@ -0,0 +1,18 @@ +// RUN: %llvmgcc -S %s -o - -fnested-functions +// PR1274 + +void Bork() { + void Fork(const int *src, int size) { + int i = 1; + int x; + + while (i < size) + x = src[i]; + } +} + +void foo(void *a){ + inline void foo_bar() { + a += 1; + } +} -- cgit v1.2.3-70-g09d2