repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
this.cpp
blob
27ee1e84a7079707585a1003426b3beeb00e1011
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
int
x
=
this
;
// expected-error {{invalid use of 'this' outside of a non-static member function}}
3
4
void
f
() {
5
int
x
=
this
;
// expected-error {{invalid use of 'this' outside of a non-static member function}}
6
}