Argyrios Kyrtzidis | 0795232 | 2008-07-01 10:37:29 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
2 | int x = this; // expected-error {{error: invalid use of 'this' outside of a nonstatic member function}} | ||||
3 | |||||
4 | void f() { | ||||
5 | int x = this; // expected-error {{error: invalid use of 'this' outside of a nonstatic member function}} | ||||
6 | } |