From 4d1f5c0b4debcfb03b98834f21249f2b65c78253 Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Thu, 5 Nov 2009 13:15:49 +0000 Subject: [PATCH] Failing testcase for bug 294306. --- .../cdt/internal/index/tests/IndexUpdateTests.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexUpdateTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexUpdateTests.java index f9147091774..60e20d6b402 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexUpdateTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexUpdateTests.java @@ -120,7 +120,6 @@ public class IndexUpdateTests extends IndexTestBase { } IProject project= cpp ? fCppProject.getProject() : fCProject.getProject(); fFile= TestSourceReader.createFile(project, "file" + (cpp ? ".cpp" : ".c"), fContents[++fContentUsed].toString()); - fContentUsed= 0; TestSourceReader.waitUntilFileIsIndexed(fIndex, fFile, INDEXER_WAIT_TIME); assertTrue(CCorePlugin.getIndexManager().joinIndexer(INDEXER_WAIT_TIME, NPM)); } @@ -1170,4 +1169,17 @@ public class IndexUpdateTests extends IndexTestBase { fIndex.releaseReadLock(); } } + + + // void funcTypeDeletion(int); + + // #include "header.h" + // typeof(funcTypeDeletion) storeRef; + // char funcTypeDeletion(int); // delete type + // typeof(storeRef) useRef; // use reference + public void _testTypedeletion_Bug294306() throws Exception { + setupHeader(2, true); + setupFile(2, true); + checkFunction("useRef", new String[]{"char", "void"}, new String[]{}); + } }