Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 -std=c99 -fsyntax-only -verify -Wvla %s
      2 // RUN: %clang_cc1 -std=c89 -fsyntax-only -verify -Wvla %s
      3 
      4 void test1(int n) {
      5   int v[n]; // expected-warning {{variable length array used}}
      6 }
      7 
      8 void test2(int n, int v[n]) { // expected-warning {{variable length array used}}
      9 }
     10 
     11 void test3(int n, int v[n]); // expected-warning {{variable length array used}}
     12 
     13