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] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
invalid-this-in-lambda.cpp
blob
ae65bda025e2323c96929ca16cabb74d8b533c1d
1
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2
3
decltype
([]()->
decltype
(
this
) { })
a
;
// expected-error {{invalid use of 'this' outside of a non-static member function}}
4