summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20100423-1_0.C
blob: f6a741dad8a50c93eaf70002a64c2bbc9c9ca212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// { dg-lto-do assemble }
// { dg-lto-options {{-g -flto}} }

namespace llvm
{
  class Function;
  class MachineCodeInfo;
  class ExecutionEngine
    {
    };
  class JIT : public ExecutionEngine
  {
    void runJITOnFunction (Function * F, MachineCodeInfo * MCI = 0);
  };
  class JITEventListener
    {
    public:
      JITEventListener ()
	{
	}
      virtual ~JITEventListener ();
    };
}

using namespace llvm;
void
JIT::runJITOnFunction (Function * F, MachineCodeInfo * MCI)
{
  class MCIListener:public JITEventListener
  {
    MachineCodeInfo *const MCI;
  public: 
    MCIListener (MachineCodeInfo * mci):MCI (mci)
	 {
	 }
  };
}