1 // This test case verifies the debug location for variable-length arrays.
3 // UNSUPPORTED: system-windows
5 // RUN: %clang -std=gnu11 -O0 -glldb %s -o %t
6 // RUN: %dexter --fail-lt 1.0 -w --binary %t --debugger 'lldb' -- %s
8 void init_vla(int size
) {
11 for (i
= 0; i
< size
; i
++)
13 vla
[0] = size
; // DexLabel('end_init')
16 int main(int argc
, const char **argv
) {
21 // DexExpectWatchValue('vla[0]', '23', on_line=ref('end_init'))
22 // DexExpectWatchValue('vla[1]', '22', on_line=ref('end_init'))