aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/cpp/dynamic-value/a.h
blob: c8895ab095d825e5bfd7b7ae0a5140a8ca22df0b (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
#ifndef A_H
#define A_H

#include <cstdio>
#include <memory>

class A {
public:
  A(int value) : m_a_value(value) {}
  A(int value, A *client_A) : m_a_value(value), m_client_A(client_A) {}

  virtual ~A() {}

  virtual void doSomething(A &anotherA);

  int Value() { return m_a_value; }

private:
  int m_a_value;
  std::auto_ptr<A> m_client_A;
};

A *make_anonymous_B();

A *take_A(A *a);

#endif