2 /* There is a devirtualizable call. In PR60306 we deduced wrong target to cxa_pure_virtual.
3 For gcc 4.10 we temporarily disable the devirtualization. */
4 /* { dg-options "-O3 -std=c++11" } */
14 virtual Object* clone() const =0;
16 virtual int type() const {return 0;}
18 Object& operator=(const Object&) {return *this;}
21 Object(const Object&) {}
25 Object* f(const Object&o)
31 class Box: public Object, public T
34 Box<T>* clone() const {return new Box<T>(*this);}
36 Box<T>& operator=(const Box<T>& t)
42 Box<T>& operator=(const T& t)
49 Box(const Box<T>&) = default;
50 explicit Box(const T& t):T(t) {}
54 using Vector = Box<vector<T>>;
56 typedef Vector<int> OVector;
58 OVector edges_connecting_to_node(int n)
62 branch_list_.push_back(i);
67 int main(int argc,char* argv[])
69 for(int n=0; n < argc; n++)
71 auto x = edges_connecting_to_node(1);