Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2017-05-08 06:59:52 +0000
committerNathan Ridge2017-05-13 03:28:30 +0000
commit882f8e95a9fbc2eac146d57d078a32a822430faa (patch)
tree4320b1fa1897f4249476dae3616c1caf190d40e5 /core/org.eclipse.cdt.core.tests
parent9b809b0ad7aec5ed58495571c7caa0bbc115903c (diff)
downloadorg.eclipse.cdt-882f8e95a9fbc2eac146d57d078a32a822430faa.tar.gz
org.eclipse.cdt-882f8e95a9fbc2eac146d57d078a32a822430faa.tar.xz
org.eclipse.cdt-882f8e95a9fbc2eac146d57d078a32a822430faa.zip
Bug 516291 - Improve propagattion of instantiate failures through EvalFunctionCall and EvalComma
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.java20
1 files changed, 19 insertions, 1 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 c0a010b010b..45edc4edc2a 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
@@ -10125,7 +10125,25 @@ public class AST2TemplateTests extends AST2TestBase {
// int main() {
// waldo(foo(0)); // Error here
// }
- public void testSFINAEInDecltype_516291() throws Exception {
+ public void testSFINAEInDecltype_516291a() throws Exception {
+ parseAndCheckBindings();
+ }
+
+ // class C {};
+ //
+ // void aux(C);
+ //
+ // template<typename T>
+ // decltype(aux(T()), C()) foo(T);
+ //
+ // int foo(...);
+ //
+ // void waldo(int);
+ //
+ // int main() {
+ // waldo(foo(0)); // Error here
+ // }
+ public void testSFINAEInDecltype_516291b() throws Exception {
parseAndCheckBindings();
}

Back to the top