Commit a6cae022 authored by hjk's avatar hjk

Debugger: Split <complex.h> auto test into GDB/LLDB specific

Results are different, but ok.

Change-Id: I5550dd4b43bdc12fac329d33e158fa759bee4d28
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent a307d886
......@@ -2388,16 +2388,28 @@ void tst_Dumpers::dumper_data()
"std::complex<double> c(1, 2);\n")
% Check("c", "(1.000000, 2.000000)", "std::complex<double>");
QTest::newRow("CComplex")
QTest::newRow("CComplexGdb")
<< Data("#include <complex.h>\n",
"// Doesn't work when compiled as C++.\n"
"double complex a = 0;\n"
"double _Complex b = 0;\n"
"unused(&a, &b);\n")
% ForceC()
% GdbOnly()
% Check("a", "0 + 0 * I", "complex double")
% Check("b", "0 + 0 * I", "complex double");
QTest::newRow("CComplexLldb")
<< Data("#include <complex.h>\n",
"// Doesn't work when compiled as C++.\n"
"double complex a = 0;\n"
"double _Complex b = 0;\n"
"unused(&a, &b);\n")
% ForceC()
% LldbOnly()
% Check("a", "0 + 0i", "_Complex double")
% Check("b", "0 + 0i", "_Complex double");
QTest::newRow("StdDequeInt")
<< Data("#include <deque>\n",
"std::deque<int> deque;\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment