re PR lto/42696 (lto1 error with -fsigned-char and char comparison)

2010-07-20  Richard Guenther  <rguenther@suse.de>

	PR lto/42696
	* gcc.dg/lto/20100720-4_0.c: New testcase.

From-SVN: r162341
This commit is contained in:
Richard Guenther 2010-07-20 15:05:59 +00:00 committed by Richard Biener
parent cf259b8462
commit be5fda91fb
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-07-20 Richard Guenther <rguenther@suse.de>
PR lto/42696
* gcc.dg/lto/20100720-4_0.c: New testcase.
2010-07-20 Richard Guenther <rguenther@suse.de>
PR lto/43221

View File

@ -0,0 +1,15 @@
/* { dg-lto-do link } */
/* { dg-lto-options {{-flto -fsigned-char} {-flto -funsigned-char}} } */
char *a;
int f;
void
foo (void)
{
f = (*a != '-');
}
int main()
{
return 0;
}