]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Change the testcase to not depend on the type of 'this' in the output.
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 24 Nov 2014 22:30:49 +0000 (22:30 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 24 Nov 2014 22:30:49 +0000 (22:30 +0000)
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

memcheck/tests/demangle.cpp
memcheck/tests/demangle.stderr.exp

index 6fb2b988ac5d1cb33e93f2785cd4544c8efcb69a..ff15fe12c364e6d6f6e8318c79e6cef2ee5f4771 100644 (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);
   }
 };
 
index b79c638ae11b697e6074cd80e21b1ef0a00c87b2..2124517f1ac1f58ea26721cba86ff10744d399ea 100644 (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)