Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
      2 
      3 void testVLAwithSize(int s)
      4 {
      5 // CHECK: metadata !{i32 {{.*}}, metadata {{.*}}, metadata !"vla", metadata {{.*}}, i32 [[@LINE+1]], metadata {{.*}}, i32 8192, i32 0} ; [ DW_TAG_auto_variable ] [vla] [line [[@LINE+1]]]
      6   int vla[s];
      7   int i;
      8   for (i = 0; i < s; i++) {
      9     vla[i] = i*i;
     10   }
     11 }
     12