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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [gc1.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// This test failed with GGC_ALWAYS_COLLECT because not all unparsed
2
// inline methods were registered with GC.
3
// { dg-do compile }
4
 
5
const char *foo ()
6
{
7
  struct A
8
  {
9
    const char *a1 ()
10
    {
11
      return "a1";
12
    }
13
    const char *a2 ()
14
    {
15
      struct B
16
      {
17
        const char *b1 ()
18
        {
19
          return "b1";
20
        }
21
        const char *b2 ()
22
        {
23
          struct C
24
          {
25
            const char *c1 ()
26
            {
27
              return "c1";
28
            }
29
            const char *c2 ()
30
            {
31
              return "c2";
32
            }
33
          };
34
          return "b2";
35
        }
36
        const char *b3 ()
37
        {
38
          return "b3";
39
        }
40
      };
41
      return "a2";
42
    }
43
    const char *a3 ()
44
    {
45
      return "a3";
46
    }
47
  };
48
  return "foo";
49
}

powered by: WebSVN 2.1.0

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