blob: 0577d3c2b9bf1733f676c4afb84e25c91ee0264e [file] [log] [blame]
// RUN: clang-cc -fsyntax-only -verify %s
int x = this; // expected-error {{error: invalid use of 'this' outside of a nonstatic member function}}
void f() {
int x = this; // expected-error {{error: invalid use of 'this' outside of a nonstatic member function}}
}