// RUN: %clang_cc1 -fsyntax-only -verify %s
// PR9615
structResource{voiddoit();};template<int x>structLock{~Lock(){int a[x];}// expected-error {{declared as an array with a negative size}}
Resource*operator->(){return0;}};structAccessor{
Lock<-1>operator->();};// Make sure we try to instantiate the destructor for Lock here
voidf(){ Accessor acc; acc->doit();}// expected-note {{requested here}}