1
/*******************************************************************************
2
* Copyright (c) 2009, 2010 IBM Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM Corporation - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.core.parser.xlc.tests.base;
13
import junit.framework.TestSuite;
15
import org.eclipse.cdt.core.lrparser.tests.LRCPPTests;
16
import org.eclipse.cdt.core.lrparser.xlc.XlcCLanguage;
17
import org.eclipse.cdt.core.lrparser.xlc.XlcCPPLanguage;
18
import org.eclipse.cdt.core.model.ILanguage;
19
import org.eclipse.cdt.core.parser.ParserLanguage;
21
public class XlcLRCPPTests extends LRCPPTests {
22
public static TestSuite suite() {
23
return suite(XlcLRCPPTests.class);
25
//CDT_70_FIX_FROM_50-#9
26
public void testStaticAssertions_294730() throws Exception {
27
String code= getAboveComment();
28
code = code.replaceAll("static_assert", "__static_assert");
29
parseAndCheckBindings(code, ParserLanguage.CPP);
32
protected ILanguage getCLanguage() {
33
return XlcCLanguage.getDefault();
36
protected ILanguage getCPPLanguage() {
37
return XlcCPPLanguage.getDefault();