2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2012-04-14 14:01:31 +00:00
|
|
|
int x = this; // expected-error {{invalid use of 'this' outside of a non-static member function}}
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
void f() {
|
2012-04-14 14:01:31 +00:00
|
|
|
int x = this; // expected-error {{invalid use of 'this' outside of a non-static member function}}
|
2009-06-02 17:58:47 +00:00
|
|
|
}
|