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:
c4e34f2
)
Prep for new warning.
author
Mike Stump
<mrs@apple.com>
Tue, 21 Jul 2009 19:02:55 +0000
(19:02 +0000)
committer
Mike Stump
<mrs@apple.com>
Tue, 21 Jul 2009 19:02:55 +0000
(19:02 +0000)
llvm-svn: 76627
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
8a84f5d
..
565ddb8
100644
(file)
--- 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(); }