projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90c67c6
)
Revert this, we have a better way to handle this.
author
Mike Stump
<mrs@apple.com>
Tue, 21 Jul 2009 23:45:39 +0000
(23:45 +0000)
committer
Mike Stump
<mrs@apple.com>
Tue, 21 Jul 2009 23:45:39 +0000
(23:45 +0000)
llvm-svn: 76685
clang/test/CXX/class/class.local/p1.cpp
patch
|
blob
|
history
diff --git
a/clang/test/CXX/class/class.local/p1.cpp
b/clang/test/CXX/class/class.local/p1.cpp
index 565ddb85886229ad6beed39d23f3aac812e7d185..8a84f5dbed8afeec6f3b9bf95a447d2095b5e789 100644
(file)
--- a/
clang/test/CXX/class/class.local/p1.cpp
+++ b/
clang/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(); }