OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [ipareference2_0.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-lto-options {{ -O1 -flto -flto-partition=1to1 -fwhole-program}} } */
2
/* { dg-lto-do run } */
3
 
4
/* Verify that ipa-reference marks A as constant and we fold references
5
   to a[1] and a[2] to &c and that we promote C to hidden vars shared across ltrans units. */
6
void abort (void);
7
int b,c,d,e,f;
8
int *a[5]={&b,&c,&c,&e};
9
void other_ltrans (void);
10
main()
11
{
12
  other_ltrans ();
13
  if (*(a[1])!=11)
14
    abort ();
15
  return 0;
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.