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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wuninitialized-2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -Wuninitialized" } */
3
 
4
struct S8 { template S8(T) { } };
5
 
6
template struct S10;
7
template struct S10 { typedef T S12; typedef S8 S1(); };
8
 
9
template struct S3 { };
10
template struct S11 { S11(S3); };
11
 
12
struct S2
13
{
14
  template operator S11() { return S11(S5()); }
15
  template struct S5:public S3
16
  {
17
    virtual typename S10::S12 S13() {
18
      return 0;
19
    }
20
  };
21
};
22
 
23
template S11 S6(S3) { return S11(S3()); }
24
template struct S7 { typedef S12 S15(); };
25
 
26
struct S4
27
{
28
  template operator S11()
29
  {
30
    struct S14:public S3
31
    {
32
      S14(S2 x):S11_(x) { }
33
      S11::S12>::S15> S11_;
34
    };
35
    return S6(S14(S11_));
36
  }
37
  S2 S11_;
38
};
39
 
40
struct S9
41
{
42
  template operator S11() { return S11(S14(S11_)); }
43
  template struct S14:public S3
44
  {
45
    S14(S4 x):S11_(x) { }
46
    S11::S1> S11_;
47
  };
48
  S4 S11_;
49
};
50
 
51
void S15(S11);
52
void S16() { S9 x; S15(x); }
53
 

powered by: WebSVN 2.1.0

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