mirror of
https://github.com/opnsense/src.git
synced 2026-02-21 00:40:33 -05:00
6 lines
269 B
C++
6 lines
269 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
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}}
|
|
}
|