diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-15 20:29:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-15 20:29:56 +0000 |
commit | decc20930db1758116649aa8e659f7b8707c857f (patch) | |
tree | 4dd2f219ff75185084018ee57c900edfe6e7176d /test/CFrontend/nested-functions.c | |
parent | b5bb7ffa9c40d13b21d1a04aec53a4428a6c02a8 (diff) |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend/nested-functions.c')
-rw-r--r-- | test/CFrontend/nested-functions.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CFrontend/nested-functions.c b/test/CFrontend/nested-functions.c new file mode 100644 index 0000000000..3ac984c3bc --- /dev/null +++ b/test/CFrontend/nested-functions.c @@ -0,0 +1,10 @@ +// RUN: %llvmgcc -S %s -o - -fnested-functions +void Bork() { + void Fork(const int *src, int size) { + int i = 1; + int x; + + while (i < size) + x = src[i]; + } +} |