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
This commit is contained in:
Marek Polacek 2017-01-21 12:00:40 +00:00 committed by Marek Polacek
parent 25cb56c3a0
commit c31d5fcecf
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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 *);