Commit c31d5fce by Marek Polacek Committed by Marek Polacek

re PR testsuite/79169 (g++.dg/warn/Wduplicated-branches1.C fails on powerpc…

re PR testsuite/79169 (g++.dg/warn/Wduplicated-branches1.C fails on powerpc since its introduction in r244705)

	PR testsuite/79169
	* g++.dg/warn/Wduplicated-branches1.C: Use signed char.

From-SVN: r244747
parent 25cb56c3
2017-01-21 Marek Polacek <polacek@redhat.com>
PR testsuite/79169
* g++.dg/warn/Wduplicated-branches1.C: Use signed char.
2017-01-20 Jan Hubicka <hubicka@ucw.cz>
* gcc.dg/tree-ssa/pr77445-2.c: Adjust template.
......
......@@ -4,7 +4,7 @@
template <typename T>
void
f (char i, int *p)
f (signed char i, int *p)
{
if (i)
*p = (signed short) i;
......@@ -17,5 +17,5 @@ f (char i, int *p)
*p = (unsigned short) i;
}
template void f<unsigned short>(char, int *); // { dg-message "required from here" }
template void f<signed short>(char, int *);
template void f<unsigned short>(signed char, int *); // { dg-message "required from here" }
template void f<signed short>(signed char, int *);
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