1
0
Fork 0
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:
Emanuel Graf 2010-07-01 06:46:39 +00:00
parent eea33f080c
commit fe6b056773

View file

@ -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()
{
return /*$*/42.0/*$$*/;
@ -183,7 +246,7 @@ A::~A()
float A::foo()
{
float f = 42.0;
double f = 42.0;
return f;
}