diff options
Diffstat (limited to 'test/FrontendC/nested-functions.c')
-rw-r--r-- | test/FrontendC/nested-functions.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/FrontendC/nested-functions.c b/test/FrontendC/nested-functions.c new file mode 100644 index 0000000..bccbef3 --- /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; + } +} |