diff options
author | Nathan Ridge | 2017-05-08 06:59:52 +0000 |
---|---|---|
committer | Nathan Ridge | 2017-05-13 03:28:30 +0000 |
commit | 882f8e95a9fbc2eac146d57d078a32a822430faa (patch) | |
tree | 4320b1fa1897f4249476dae3616c1caf190d40e5 /core/org.eclipse.cdt.core.tests | |
parent | 9b809b0ad7aec5ed58495571c7caa0bbc115903c (diff) | |
download | org.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
Change-Id: Ieafe15a88c3838d15aaaf9043199ae2caf1c31db
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.java | 20 |
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(); } |