1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 399217 - Toggle Function: Exception on typedef as return type

The bug(s) seems to be fixed already.
Added a test case for verification.

Change-Id: If42d796ba27694254bdcd79d69aad323763c2105
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
This commit is contained in:
Thomas Corbat 2015-04-09 10:54:44 +02:00
parent 442bcd62e1
commit 3855933de1

View file

@ -3216,4 +3216,51 @@ public class ToggleRefactoringTest extends RefactoringTestBase {
public void testQualifiedFunctionInNestedNamespaceToSourceWithRecurringNamespaceName_464102() throws Exception { public void testQualifiedFunctionInNestedNamespaceToSourceWithRecurringNamespaceName_464102() throws Exception {
assertRefactoringSuccess(); 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();
}
} }