1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
7 lines
257 B
C++
7 lines
257 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
int x = this; // expected-error {{invalid use of 'this' outside of a non-static member function}}
|
|
|
|
void f() {
|
|
int x = this; // expected-error {{invalid use of 'this' outside of a non-static member function}}
|
|
}
|