summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/new1.C
blob: d61c44633cef2c3747663a1415b1c23ff013bf83 (plain)
1
2
3
4
5
6
7
struct T; // { dg-error "forward" }
T* manage(T* t);
template <class Obj> struct ObjectSlot0_ {
  void create() {
    void* tmp = manage(new T()); // { dg-error "incomplete" }
  }
};