Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin %s -o - | FileCheck %s
      2 
      3 void testVLAwithSize(int s)
      4 {
      5 // CHECK: dbg.declare
      6 // CHECK: dbg.declare({{.*}}, metadata ![[VAR:.*]], metadata ![[EXPR:.*]])
      7 // CHECK: ![[VAR]] = !DILocalVariable(name: "vla",{{.*}} line: [[@LINE+2]]
      8 // CHECK: ![[EXPR]] = !DIExpression(DW_OP_deref)
      9   int vla[s];
     10   int i;
     11   for (i = 0; i < s; i++) {
     12     vla[i] = i*i;
     13   }
     14 }
     15