]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/this.cpp
Update clang to r86025.
[FreeBSD/FreeBSD.git] / test / SemaCXX / this.cpp
1 // RUN: clang-cc -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 }