[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGen / debug-info-vla.c
blob22b3930dfc88c9457fe7e7952b1b2b49076a675b
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin %s -o - | FileCheck %s
3 void testVLAwithSize(int s)
5 // CHECK-DAG: dbg.declare({{.*}} %__vla_expr0, metadata ![[VLAEXPR:[0-9]+]]
6 // CHECK-DAG: dbg.declare({{.*}} %vla, metadata ![[VAR:[0-9]+]]
7 // CHECK-DAG: ![[VLAEXPR]] = !DILocalVariable(name: "__vla_expr0", {{.*}} flags: DIFlagArtificial
8 // CHECK-DAG: ![[VAR]] = !DILocalVariable(name: "vla",{{.*}} line: [[@LINE+2]]
9 // CHECK-DAG: !DISubrange(count: ![[VLAEXPR]])
10 int vla[s];
11 int i;
12 for (i = 0; i < s; i++) {
13 vla[i] = i*i;