* [PATCH] Add some more lto testcases
@ 2009-10-06 11:51 Richard Guenther
0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2009-10-06 11:51 UTC (permalink / raw)
To: gcc-patches
PR41502 was fixed, this adds a testcase. It also adds a testcase
for some type-merging bug I created at some point.
Applied.
Richard.
2009-10-06 Richard Guenther <rguenther@suse.de>
PR lto/41502
* gcc.dg/lto/20091006-1_0.c: New testcase.
* gcc.dg/lto/20091006-1_1.c: Likewise.
* gcc.dg/lto/20091005-2_0.c: Likewise.
Index: gcc/testsuite/gcc.dg/lto/20091006-1_0.c
===================================================================
*** gcc/testsuite/gcc.dg/lto/20091006-1_0.c (revision 0)
--- gcc/testsuite/gcc.dg/lto/20091006-1_0.c (revision 0)
***************
*** 0 ****
--- 1,14 ----
+ /* { dg-lto-do link } */
+
+ typedef void (*fnt) (void);
+ void __attribute__((noinline)) bar (void) {}
+ extern inline void check3 (void)
+ {
+ bar ();
+ }
+ void test (void)
+ {
+ const fnt pcheck3 = check3;
+ pcheck3 ();
+ }
+ int main() { return 0; }
Index: gcc/testsuite/gcc.dg/lto/20091006-1_1.c
===================================================================
*** gcc/testsuite/gcc.dg/lto/20091006-1_1.c (revision 0)
--- gcc/testsuite/gcc.dg/lto/20091006-1_1.c (revision 0)
***************
*** 0 ****
--- 1,2 ----
+ extern void bar (void);
+ void check3 (void) { bar (); }
Index: gcc/testsuite/gcc.dg/lto/20091005-2_0.c
===================================================================
*** gcc/testsuite/gcc.dg/lto/20091005-2_0.c (revision 0)
--- gcc/testsuite/gcc.dg/lto/20091005-2_0.c (revision 0)
***************
*** 0 ****
--- 1,11 ----
+ /* { dg-lto-do link } */
+ /* { dg-lto-options {{-fstrict-aliasing -flto}} } */
+
+ typedef struct { } t_commrec;
+ typedef struct { } t_fft_c;
+ void
+ solve_pme(t_commrec *cr)
+ {
+ t_fft_c *ptr;
+ }
+ int main () { return 0; }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-06 10:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-06 11:51 [PATCH] Add some more lto testcases Richard Guenther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).