1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 void f(A
* p
= this) { } // expected-error{{invalid use of 'this'}}
10 // expected-error@-1 {{cannot initialize a parameter of type 'int' with an rvalue of type 'A *'}}
11 // expected-note@-2 {{passing argument to parameter here}}
13 void h(int = ((void)this,42));
14 // expected-error@-1 {{default argument references 'this'}}