1*f4a2713aSLionel Sambuc // RUN: not %clang-cc1 -fsyntax-only %s 2>&1 | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // IMPORTANT: This test case intentionally DOES NOT use --disable-free. It 4*f4a2713aSLionel Sambuc // tests that we are properly reclaiming the ASTs and we do not have a double free. 5*f4a2713aSLionel Sambuc // Previously we tried to free the size expression of the VLA twice. 6*f4a2713aSLionel Sambuc foo(int x)7*f4a2713aSLionel Sambucint foo(int x) { 8*f4a2713aSLionel Sambuc int y[x * 3]; 9*f4a2713aSLionel Sambuc help 10*f4a2713aSLionel Sambuc }; 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc // CHECK: 9:3: error: use of undeclared identifier 'help' 13*f4a2713aSLionel Sambuc // CHECK: help 14