summaryrefslogtreecommitdiffstats
path: root/test/input/Function-Argument-default-cast.cxx
blob: ba9040f48cbc912986ff98b907ece89e1d2ce5f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace start {
struct Base
{
  Base();
  virtual ~Base();
};
struct Derived : public Base
{
  Derived();
  Derived(Derived const&);
  Derived& operator=(Derived const&);
  virtual ~Derived();
};
Base* b();
Base const* bc();
typedef int Int;
void f(Int = (Int)0, Base* = (Base*)0, Base* = static_cast<Base*>(0),
       Base* = reinterpret_cast<Base*>(0), Base* = const_cast<Base*>(bc()),
       Derived* = dynamic_cast<Derived*>(b()));
}