blob: 167755f0a74d0c9a26e2888d204ea4283e345b7f (
plain)
1
2
3
4
5
6
|
// 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}}
}
|