summaryrefslogtreecommitdiff
path: root/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p8.cpp
blob: 1a08ab73328770c85ca08d793039b3db17b7eec3 (about) (plain)
1
2
3
4
// RUN: %clang_cc1 -fsyntax-only -verify %s
class A { 
  void f(A* p = this) { }	// expected-error{{invalid use of 'this'}}
};