commit | df341b48a343bd23292c7ec171682d72eba66b17 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue May 15 20:29:56 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue May 15 20:29:56 2007 +0000 |
tree | 842b42c65f3b434714326548e63106f6b353508f | |
parent | 3f142cbca21843fa33aa8923c26acaa5d4678673 [diff] [blame] |
new testcase llvm-svn: 37087
diff --git a/llvm/test/CFrontend/nested-functions.c b/llvm/test/CFrontend/nested-functions.c new file mode 100644 index 0000000..3ac984c --- /dev/null +++ b/llvm/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]; + } +}