From 45f2292a5ef6820aef8831aa368b7dd6d6d79048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 17 May 2007 17:26:32 +0000 Subject: [PATCH] Testing: "return" and "delete" are not variable declarations --- internaltesting/testdecl.cpp | 3 +++ internaltesting/testdecl.out | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/internaltesting/testdecl.cpp b/internaltesting/testdecl.cpp index 02e7ac698..02093a360 100644 --- a/internaltesting/testdecl.cpp +++ b/internaltesting/testdecl.cpp @@ -6,6 +6,9 @@ void f() int b = 2, c, *d = NULL; int e = g(p1,p2); char str[10]; + + return a; + delete a; } diff --git a/internaltesting/testdecl.out b/internaltesting/testdecl.out index a1f675d50..877bdabf9 100644 --- a/internaltesting/testdecl.out +++ b/internaltesting/testdecl.out @@ -11,4 +11,6 @@ 7 : use p1 7 : use p2 8 : decl str -9 : } +10 : return a +11 : delete a +12 : }