blob: 2c4bb5a4115dbd122822af5f02c21764b5e933e2 [file] [log] [blame]
// Build don't link:
// Origin: Ian Nixon <ian@tharas.com>
class Action {
public:
virtual void action () = 0;
};
class Var {
public:
template<class Base> void Add() {
struct tmp : public Action {
void action () {}
};
tmp *tp = new tmp;
}
};