2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only -verify %s
|
2008-07-01 18:37:29 +08:00
|
|
|
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}}
|
|
|
|
}
|