Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2012-05-07 02:10:15 -0400
committerMarkus Schorn2012-05-07 02:10:15 -0400
commitb1a93770192c492073589b815dcb29f907076479 (patch)
tree575dd4cf97090d260929921daf9193b68a5505b7 /core/org.eclipse.cdt.core.tests
parent77442617cc7d23302e446a227726b4b0e42f8e81 (diff)
downloadorg.eclipse.cdt-b1a93770192c492073589b815dcb29f907076479.tar.gz
org.eclipse.cdt-b1a93770192c492073589b815dcb29f907076479.tar.xz
org.eclipse.cdt-b1a93770192c492073589b815dcb29f907076479.zip
Bug 378614: Function ptr as K&R parameter.
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/AST2KnRTests.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2KnRTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2KnRTests.java
index 452ca0e7ec..b0717f0aa5 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2KnRTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2KnRTests.java
@@ -674,4 +674,13 @@ public class AST2KnRTests extends AST2BaseTest {
fail(e.getMessage());
}
}
+
+ // void push_constant (in_char, conv_base)
+ // char (*in_char)(void);
+ // int conv_base;
+ // {}
+ public void testFunctionPtrParameter_378614() throws Exception {
+ String code= getAboveComment();
+ parseAndCheckBindings(code, ParserLanguage.C, true);
+ }
}

Back to the top