Change the testcase to not depend on the type of 'this' in the output.

GCC 4.9.2 and GCC 4.8.x have different opinions about that variable's type.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14780
This commit is contained in:
Florian Krohm 2014-11-24 22:30:49 +00:00
parent 01782fe668
commit 84e3e486d3
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class magic {
public:
T xyzzy(T *p)
{
return (new abc::def<int,typeof(this)>)->xyzzy(p, 0);
return (new abc::def<int,typeof(*this)>)->xyzzy(p, 0);
}
};

View File

@ -1,6 +1,6 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: abc::def<int, magic<int>* const>::xyzzy(int*, magic<int>* const*) (demangle.cpp:9)
at 0x........: abc::def<int, magic<int> >::xyzzy(int*, magic<int>*) (demangle.cpp:9)
by 0x........: magic<int>::xyzzy(int*) (demangle.cpp:19)
by 0x........: main (demangle.cpp:27)