From 447351f1ff97993cc64372fd1c646218179169f8 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Tue, 21 Jul 2009 19:02:55 +0000 Subject: [PATCH] Prep for new warning. llvm-svn: 76627 --- clang/test/CXX/class/class.local/p1.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clang/test/CXX/class/class.local/p1.cpp b/clang/test/CXX/class/class.local/p1.cpp index 8a84f5dbed8a..565ddb858862 100644 --- a/clang/test/CXX/class/class.local/p1.cpp +++ b/clang/test/CXX/class/class.local/p1.cpp @@ -8,7 +8,10 @@ void f() extern int g(); struct local { - int g() { return x; } // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}} + int g() { + return x; // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}} + return 1; + } int h() { return s; } int k() { return :: x; } int l() { return g(); }