mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 318493: ExtractLocalVariableRefactoringTest float fails because of error in test
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318493
This commit is contained in:
parent
eea33f080c
commit
fe6b056773
1 changed files with 64 additions and 1 deletions
|
@ -165,6 +165,69 @@ A::~A()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float A::foo()
|
||||||
|
{
|
||||||
|
return /*$*/42.0f/*$$*/;
|
||||||
|
}
|
||||||
|
|
||||||
|
//=
|
||||||
|
#include "A.h"
|
||||||
|
|
||||||
|
A::A()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
A::~A()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
float A::foo()
|
||||||
|
{
|
||||||
|
float f = 42.0f;
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
|
||||||
|
//!ExtractLocalVariableRefactoringTest double
|
||||||
|
//#org.eclipse.cdt.ui.tests.refactoring.extractlocalvariable.ExtractLocalVariableRefactoringTest
|
||||||
|
//@A.h
|
||||||
|
#ifndef A_H_
|
||||||
|
#define A_H_
|
||||||
|
|
||||||
|
class A
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
A();
|
||||||
|
virtual ~A();
|
||||||
|
float foo();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /*A_H_*/
|
||||||
|
|
||||||
|
//=
|
||||||
|
#ifndef A_H_
|
||||||
|
#define A_H_
|
||||||
|
|
||||||
|
class A
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
A();
|
||||||
|
virtual ~A();
|
||||||
|
float foo();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /*A_H_*/
|
||||||
|
|
||||||
|
//@A.cpp
|
||||||
|
#include "A.h"
|
||||||
|
|
||||||
|
A::A()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
A::~A()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
float A::foo()
|
float A::foo()
|
||||||
{
|
{
|
||||||
return /*$*/42.0/*$$*/;
|
return /*$*/42.0/*$$*/;
|
||||||
|
@ -183,7 +246,7 @@ A::~A()
|
||||||
|
|
||||||
float A::foo()
|
float A::foo()
|
||||||
{
|
{
|
||||||
float f = 42.0;
|
double f = 42.0;
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue