This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add testcase for PR42696


Committed.

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

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

Index: gcc/testsuite/gcc.dg/lto/20100720-4_0.c
===================================================================
*** gcc/testsuite/gcc.dg/lto/20100720-4_0.c	(revision 0)
--- gcc/testsuite/gcc.dg/lto/20100720-4_0.c	(revision 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;
+ }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]