Skip to main content
summaryrefslogtreecommitdiffstats
blob: b6bdfef901434104f3d6c95c23320bf079f66ca9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************************************
 *  Copyright (c) 2010 IBM Corporation and others.
 *
 *  This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License 2.0
 *  which accompanies this distribution, and is available at
 *  https://www.eclipse.org/legal/epl-2.0/
 *
 *  SPDX-License-Identifier: EPL-2.0
 *
 *  Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.core.parser.xlc.tests.base;

import org.eclipse.cdt.core.lrparser.tests.LRCompletionHangingTest;
import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;

import junit.framework.TestSuite;

public class XlcCompletionHangingTest extends LRCompletionHangingTest {

	public static TestSuite suite() {
		return new TestSuite(XlcCompletionHangingTest.class);
	}

	//TODO ??? overwrite some failed test cases
	@Override
	public void testCompletionTemplateClassForCPP() throws Exception {
	}

	@Override
	public void testCompletionGnuCPP() throws Exception {
	}

	@Override
	protected XlcCLanguage getCLanguage() {
		return XlcCLanguage.getDefault();
	}

	@Override
	protected XlcCPPLanguage getCPPLanguage() {
		return XlcCPPLanguage.getDefault();
	}

	public void testCompletionXlc() throws Exception {

		String code = " __static_assert" + CONTENT_ASIST_CURSOR + "(a>" + CONTENT_ASIST_CURSOR
				+ "b, \"no 64-bit support\"); \n" + "   vector " + CONTENT_ASIST_CURSOR + "unsigned "
				+ CONTENT_ASIST_CURSOR + "int d = ++a;        \n";
		runTestCase(code, getCPPLanguage());
	}
}

Back to the top