From 103f5779268a192548906c0401008538582da522 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Fri, 18 Apr 2014 12:24:27 -0700 Subject: [PATCH] Moved testU8TokenAfterIfdef_429361 to AST2Tests --- .../cdt/core/parser/tests/ast2/AST2CPPTests.java | 9 --------- .../eclipse/cdt/core/parser/tests/ast2/AST2Tests.java | 11 ++++++++++- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java index 89d105b5674..f3c933c142c 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java @@ -10568,13 +10568,4 @@ public class AST2CPPTests extends AST2TestBase { public void testParenthesizedReferenceArgument_424898() throws Exception { parseAndCheckBindings(); } - - // typedef unsigned char u8; - // - // #ifndef X - // u8 var; - // #endif - public void testU8TokenAfterIfdef_429361() throws Exception { - parseAndCheckBindings(); - } } diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java index 5c1f393c9d2..f750a0fc606 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2013 IBM Corporation and others. + * Copyright (c) 2004, 2014 IBM Corporation 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 @@ -7539,4 +7539,13 @@ public class AST2Tests extends AST2TestBase { // 7 characters for "foobar" + the null terminator. assertEquals(7, f.getTemplateArguments()[0].getNonTypeValue().numericalValue().longValue()); } + + // typedef unsigned char u8; + // + // #ifndef X + // u8 var; + // #endif + public void testU8TokenAfterIfdef_429361() throws Exception { + parseAndCheckBindings(); + } }