Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java15
1 files changed, 15 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 7d2815987cc..eb4b961ae3b 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
@@ -10125,6 +10125,21 @@ public class AST2CPPTests extends AST2TestBase {
parseAndCheckBindings(getAboveComment(), CPP, true);
}
+ // template <typename T>
+ // T bar();
+ // struct S {
+ // void waldo();
+ // };
+ // int main() {
+ // auto L = [](S s) { return s; };
+ // typedef decltype(L) lambda_type;
+ // decltype(bar<const lambda_type>()(S())) v;
+ // v.waldo();
+ // }
+ public void testDecltypeWithConstantLambda_397494() throws Exception {
+ parseAndCheckBindings();
+ }
+
// template <bool>
// struct enable_if {
// };

Back to the top