1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Testcase for bug 166954, typdef for typedef in index.

This commit is contained in:
Markus Schorn 2006-12-06 13:55:02 +00:00
parent 94a253b327
commit 0e4828878f
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,51 @@
/*******************************************************************************
* Copyright (c) 2006 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.internal.pdom.tests;
import junit.framework.TestSuite;
import org.eclipse.cdt.core.dom.IPDOMManager;
import org.eclipse.cdt.core.dom.ast.IBinding;
import org.eclipse.cdt.core.testplugin.CProjectHelper;
import org.eclipse.core.runtime.Path;
/**
* For testing PDOM binding resolution
*/
public class IndexBindingResolutionBugs extends IndexBindingResolutionTestBase {
public static TestSuite suite() {
return suite(IndexBindingResolutionBugs.class);
}
protected void setUp() throws Exception {
cproject= CProjectHelper.createCCProject("ResolveBindingBugs", "bin", IPDOMManager.ID_NO_INDEXER);
header = new Path("header.h");
references = new Path("references.cpp");
super.setUp();
}
// // header file
// class cl;
// typedef cl* t1;
// typedef t1 t2;
//// referencing content
// void func(t2 a);
// void func(int b);
// void ref() {
// cl* a;
// func(a);
// }
public void _testBug166954() {
IBinding b0 = getBindingFromASTName("func(a)", 4);
}
}

View file

@ -41,6 +41,7 @@ public class PDOMTests extends TestSuite {
suite.addTest(IndexCBindingResolutionTest.suite()); suite.addTest(IndexCBindingResolutionTest.suite());
suite.addTest(IndexCPPBindingResolutionTest.suite()); suite.addTest(IndexCPPBindingResolutionTest.suite());
suite.addTest(IndexBindingResolutionBugs.suite());
suite.addTest(CFunctionTests.suite()); suite.addTest(CFunctionTests.suite());
suite.addTest(CVariableTests.suite()); suite.addTest(CVariableTests.suite());