// RUN: %clang_cc1 -fsyntax-only -verify %s
classA{voidf(A*p=this){}// expected-error{{invalid use of 'this'}}
voidtest();};voidA::test(){voidg(int=this);// expected-error@-1 {{cannot initialize a parameter of type 'int' with an rvalue of type 'A *'}}
// expected-note@-2 {{passing argument to parameter here}}
voidh(int=((void)this,42));// expected-error@-1 {{default argument references 'this'}}
}