diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/refactoring/togglefunction/ToggleRefactoringTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/refactoring/togglefunction/ToggleRefactoringTest.java index 1445b7fbdca..443042aca5b 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/refactoring/togglefunction/ToggleRefactoringTest.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/refactoring/togglefunction/ToggleRefactoringTest.java @@ -3216,4 +3216,51 @@ public class ToggleRefactoringTest extends RefactoringTestBase { public void testQualifiedFunctionInNestedNamespaceToSourceWithRecurringNamespaceName_464102() throws Exception { assertRefactoringSuccess(); } + + //A.h + //typedef unsigned long uL; + //uL f(); + //uL /*$*/f/*$$*/() { + // ulong a; + // return a; + //} + //==================== + //typedef unsigned long uL; + //uL f(); + + //A.c + //#include "A.h" + //==================== + //#include "A.h" + // + //uL f() { + // ulong a; + // return a; + //} + public void testToggleFunctionWithTypedefReturntypeToSource_399217() throws Exception { + assertRefactoringSuccess(); + } + + //A.h + //typedef unsigned long uL; + //uL f(); + //==================== + //typedef unsigned long uL; + //uL f() { + // ulong a; + // return a; + //} + + //A.c + //#include "A.h" + // + //uL /*$*/f/*$$*/() { + // ulong a; + // return a; + //} + //==================== + //#include "A.h" + public void testToggleFunctionWithTypedefReturntypeToHeader_399217() throws Exception { + assertRefactoringSuccess(); + } }