[llvm-commits] CVS: llvm/test/CFrontend/nested-functions.c

2007-05-15 Thread Chris Lattner


Changes in directory llvm/test/CFrontend:

nested-functions.c added (r1.1)
---
Log message:

new testcase


---
Diffs of the changes:  (+10 -0)

 nested-functions.c |   10 ++
 1 files changed, 10 insertions(+)


Index: llvm/test/CFrontend/nested-functions.c
diff -c /dev/null llvm/test/CFrontend/nested-functions.c:1.1
*** /dev/null   Tue May 15 15:30:07 2007
--- llvm/test/CFrontend/nested-functions.c  Tue May 15 15:29:56 2007
***
*** 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];
+   }
+ }



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/test/CFrontend/nested-functions.c

2007-05-15 Thread Chris Lattner


Changes in directory llvm/test/CFrontend:

nested-functions.c updated: 1.1 - 1.2
---
Log message:

add PR number and testcase from the PR.


---
Diffs of the changes:  (+8 -0)

 nested-functions.c |8 
 1 files changed, 8 insertions(+)


Index: llvm/test/CFrontend/nested-functions.c
diff -u llvm/test/CFrontend/nested-functions.c:1.1 
llvm/test/CFrontend/nested-functions.c:1.2
--- llvm/test/CFrontend/nested-functions.c:1.1  Tue May 15 15:29:56 2007
+++ llvm/test/CFrontend/nested-functions.c  Tue May 15 15:40:25 2007
@@ -1,4 +1,6 @@
 // RUN: %llvmgcc -S %s -o -  -fnested-functions
+// PR1274
+
 void Bork() {
   void Fork(const int *src, int size) {
 int i = 1;
@@ -8,3 +10,9 @@
   x = src[i];
   }
 }
+
+void foo(void *a){
+  inline void foo_bar() {
+a += 1;
+  }
+}



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits