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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20090311-1_0.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-lto-do run }  */
2
#include "20090311-1.h"
3
bool flag;
4
 
5
struct B {
6
    int a;
7
    enum { ANOTHER, ONE } f2_;
8
    float c;
9
};
10
 
11
extern struct B x[];
12
 
13
struct C {
14
    int x;
15
    struct B *p;
16
    float d;
17
};
18
 
19
C c = { 0, 0, 3.4 };
20
 
21
struct A {
22
    enum { UNO, DOS, TRES } f1_;
23
    int x;
24
};
25
 
26
A a;
27
 
28
extern int foo();
29
main()
30
{
31
  a.x = 4 + c.x;
32
  foo();
33
  return 0;
34
}

powered by: WebSVN 2.1.0

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