mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
bug464969_d_demangle depends on producing an error about an uninitialized variable. But it prints something different to stdout based on the value of that variable. Which can produce failures. Make sure to always print the same thing to stdout.
18 lines
199 B
C++
18 lines
199 B
C++
#include <iostream>
|
|
|
|
extern "C" void _D4test4findFiPxaZPxa()
|
|
{
|
|
int a;
|
|
if (a)
|
|
std::cout << "Xa\n";
|
|
else
|
|
std::cout << "X" << "a\n";
|
|
}
|
|
|
|
int main()
|
|
{
|
|
_D4test4findFiPxaZPxa();
|
|
}
|
|
|
|
|