Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2012-04-26 04:13:11 -0400
committerMarkus Schorn2012-04-26 04:16:27 -0400
commit755d3975a6c0c4610667db2849f31e1102c5b3e4 (patch)
tree0fb339e8319b1e4e8c056cf3ddd6dbfeb2fd9084 /core/org.eclipse.cdt.core.tests
parentba5775f033ceab847c43042bb83a5a20af830d7c (diff)
downloadorg.eclipse.cdt-755d3975a6c0c4610667db2849f31e1102c5b3e4.tar.gz
org.eclipse.cdt-755d3975a6c0c4610667db2849f31e1102c5b3e4.tar.xz
org.eclipse.cdt-755d3975a6c0c4610667db2849f31e1102c5b3e4.zip
Bug 376246: Name resolution in catch handler of function definition.
Diffstat (limited to 'core/org.eclipse.cdt.core.tests')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
index 26a291eb12..2b808fa58a 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
@@ -9592,4 +9592,12 @@ public class AST2CPPTests extends AST2BaseTest {
assertSame(calls[calls.length - 1] + " and " + calls[calls.length - 2] + " resolve to different functions",
functions[calls.length - 1], functions[calls.length - 2]);
}
+
+ // void f(int x) try {
+ // } catch(...) {
+ // (void)x;
+ // }
+ public void testParentScopeOfCatchHandler_376246() throws Exception {
+ parseAndCheckBindings();
+ }
}

Back to the top