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/ASTCPPSpecDefectTests.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/ASTCPPSpecDefectTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/ASTCPPSpecDefectTests.java
index fbaae3ff4d5..6a4f3723775 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/ASTCPPSpecDefectTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/ASTCPPSpecDefectTests.java
@@ -76,4 +76,11 @@ public class ASTCPPSpecDefectTests extends AST2TestBase {
parseAndCheckBindings();
}
+ // auto f(int x, int y) -> decltype(x < y ? x : y) {
+ // return x < y ? x : y;
+ // }
+ public void testUnparenthesizedConditionalExpressionInTrailingReturnType_544818() throws Exception {
+ parseAndCheckBindings();
+ }
+
}

Back to the top