aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/nested-functions.c10
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];
+ }
+}