Add testcase
[oota-llvm.git] / test / CFrontend / nested-functions.c
index 3ac984c3bce955c4df919e51c17d144ae62b3dc4..bccbef3dbdd8655ed8562b3c4f8731d16ba805c5 100644 (file)
@@ -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 @@ void Bork() {
       x = src[i];
   }
 }
+
+void foo(void *a){
+  inline void foo_bar() {
+    a += 1;
+  }
+}