blob: 167755f0a74d0c9a26e2888d204ea4283e345b7f [file] [log] [blame]
// RUN: %clang_cc1 -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}}
}