summaryrefslogtreecommitdiff
path: root/test/FrontendC/nested-functions.c
blob: bccbef3dbdd8655ed8562b3c4f8731d16ba805c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %llvmgcc -S %s -o -  -fnested-functions
// PR1274

void Bork() {
  void Fork(const int *src, int size) {
    int i = 1;
    int x;

    while (i < size)
      x = src[i];
  }
}

void foo(void *a){
  inline void foo_bar() {
    a += 1;
  }
}