Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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/cxx14/constexpr/FunctionTests.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx14/constexpr/FunctionTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx14/constexpr/FunctionTests.java
index ed01e62a1b2..7a02be8d2b5 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx14/constexpr/FunctionTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx14/constexpr/FunctionTests.java
@@ -281,4 +281,14 @@ public class FunctionTests extends TestBase {
public void testLambdaExpression_560483() throws Exception {
assertEvaluationEquals(58);
}
+
+ // //Empty header file
+
+ // constexpr int f() {
+ // return ([]() constexpr -> int {return 58;})();
+ // }
+ // constexpr int x = f();
+ public void testLambdaExpression2_560483() throws Exception {
+ assertEvaluationEquals(58);
+ }
} \ No newline at end of file

Back to the top