blob: b8bf4b7d3aafb38d28d2af3bd30c26bff73d0f1a [file] [log] [blame]
// RUN: clang -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}}
}