Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-11-10 01:10:14 -0500
committerNathan Ridge2018-11-17 03:02:51 -0500
commite082f73b56d8ea0f588f5ee8338d44b3f06b5f88 (patch)
tree385c49a7b8b1a829eec5802f3849010b645ffb5d /core/org.eclipse.cdt.core.tests
parent54f6c19de27012a9e7662ed5cfcbcf1377583bd6 (diff)
downloadorg.eclipse.cdt-e082f73b56d8ea0f588f5ee8338d44b3f06b5f88.tar.gz
org.eclipse.cdt-e082f73b56d8ea0f588f5ee8338d44b3f06b5f88.tar.xz
org.eclipse.cdt-e082f73b56d8ea0f588f5ee8338d44b3f06b5f88.zip
Bug 540957 - Implement equivalence checking for expressions
This is used for declaration matching in function templates. Change-Id: I80044304b2d9dfda085a13f0cfc040f1200a2e1c
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/AST2TemplateTests.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java
index 7e5d6696e60..da45492b6d9 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java
@@ -9018,6 +9018,20 @@ public class AST2TemplateTests extends AST2CPPTestBase {
parseAndCheckBindings();
}
+ // template <typename T>
+ // T __declval();
+ //
+ // template <typename T>
+ // decltype(__declval<T>()) declval();
+ //
+ // template <typename T>
+ // decltype(__declval<T>()) declval();
+ //
+ // using T = decltype(declval<int>());
+ public void testDeclvalDeclaration_540957() throws Exception {
+ parseAndCheckBindings();
+ }
+
// template <typename T>
// class meta {
// typedef T type;

Back to the top