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:
447351f
)
Prep for new warning.
author
Mike Stump
<mrs@apple.com>
Tue, 21 Jul 2009 19:03:43 +0000
(19:03 +0000)
committer
Mike Stump
<mrs@apple.com>
Tue, 21 Jul 2009 19:03:43 +0000
(19:03 +0000)
llvm-svn: 76628
clang/test/CXX/class/class.local/p3.cpp
patch
|
blob
|
history
diff --git
a/clang/test/CXX/class/class.local/p3.cpp
b/clang/test/CXX/class/class.local/p3.cpp
index
d888a6d
..
fa873d8
100644
(file)
--- 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
+}