From f4464156cf956c1f89844f8db0dbcb773f535eb1 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Tue, 21 Jul 2009 19:03:43 +0000 Subject: [PATCH] Prep for new warning. llvm-svn: 76628 --- clang/test/CXX/class/class.local/p3.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clang/test/CXX/class/class.local/p3.cpp b/clang/test/CXX/class/class.local/p3.cpp index d888a6d93633..fa873d8af329 100644 --- a/clang/test/CXX/class/class.local/p3.cpp +++ b/clang/test/CXX/class/class.local/p3.cpp @@ -24,7 +24,10 @@ void f2() { void f3(int a) { // expected-note{{'a' declared here}} struct X { struct Y { - int f() { return a; } // expected-error{{reference to local variable 'a' declared in enclosed function 'f3'}} + int f() { + return a; // expected-error{{reference to local variable 'a' declared in enclosed function 'f3'}} + return 1; + } }; }; -} \ No newline at end of file +}