From: Richard Guenther Date: Tue, 20 Jul 2010 15:05:59 +0000 (+0000) Subject: re PR lto/42696 (lto1 error with -fsigned-char and char comparison) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be5fda91fbeaf7447f651c3516de040b4a51b35b;p=gcc.git re PR lto/42696 (lto1 error with -fsigned-char and char comparison) 2010-07-20 Richard Guenther PR lto/42696 * gcc.dg/lto/20100720-4_0.c: New testcase. From-SVN: r162341 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0eac2aece69..402d31dc61a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-07-20 Richard Guenther + + PR lto/42696 + * gcc.dg/lto/20100720-4_0.c: New testcase. + 2010-07-20 Richard Guenther PR lto/43221 diff --git a/gcc/testsuite/gcc.dg/lto/20100720-4_0.c b/gcc/testsuite/gcc.dg/lto/20100720-4_0.c new file mode 100644 index 00000000000..e7669552fa9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/20100720-4_0.c @@ -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; +}