diff options
author | Mike Stump <mrs@apple.com> | 2009-07-21 23:45:39 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-07-21 23:45:39 +0000 |
commit | f18de03d2193d79755921e428af62b0a3aef2312 (patch) | |
tree | fd85237a2f14d87dbe05a450b5764eda16144785 | |
parent | e941d8ed27c5f6d9fe32921c5cc265efe6c51fde (diff) |
Revert this, we have a better way to handle this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76685 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CXX/class/class.local/p1.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/CXX/class/class.local/p1.cpp b/test/CXX/class/class.local/p1.cpp index 565ddb8588..8a84f5dbed 100644 --- a/test/CXX/class/class.local/p1.cpp +++ b/test/CXX/class/class.local/p1.cpp @@ -8,10 +8,7 @@ void f() extern int g(); struct local { - int g() { - return x; // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}} - return 1; - } + int g() { return x; } // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}} int h() { return s; } int k() { return :: x; } int l() { return g(); } |