2012-05-09 02:56:47 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
void testVLAwithSize(int s)
|
|
|
|
{
|
2014-10-04 04:01:52 +08:00
|
|
|
// CHECK: metadata !{metadata !"0x100\00vla\00[[@LINE+1]]\008192", metadata {{.*}}, metadata {{.*}}, metadata {{.*}}} ; [ DW_TAG_auto_variable ] [vla] [line [[@LINE+1]]]
|
2012-05-09 02:56:47 +08:00
|
|
|
int vla[s];
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < s; i++) {
|
|
|
|
vla[i] = i*i;
|
|
|
|
}
|
|
|
|
}
|