[gdb/testsuite] Make noclone conditional in vla-optimized-out.c
authorTom de Vries <tdevries@suse.de>
Fri, 20 Jul 2018 14:40:10 +0000 (16:40 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 20 Jul 2018 15:04:02 +0000 (17:04 +0200)
commit232a00325b0f97e108014148c68ae314e90cbb36
tree3ae706c179b36881a3c31ea80e1d3384f5b18362
parent3391569f218cd5d05e96769f47559d5828be3acd
[gdb/testsuite] Make noclone conditional in vla-optimized-out.c

Make the noclone attribute on f1 in vla-optimized-out.c conditional.  This
makes the test-case by default identical to
gcc/testsuite/gcc.dg/guality/vla-1.c.

Tested on x86_64-linux.

2018-07-20  Tom de Vries  <tdevries@suse.de>

* gdb.base/vla-optimized-out.c: Make noclone attribute conditional on
NOCLONE macro.
* gdb.base/vla-optimized-out.exp: Use additional_flags -DNOCLONE.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/vla-optimized-out.c
gdb/testsuite/gdb.base/vla-optimized-out.exp