Sign in
llvm
/
llvm-project.git
/
refs/heads/users/wlei-llvm/spr/tmp-add-func-map-section-header
/
.
/
clang
/
test
/
SemaCXX
/
invalid-this-in-lambda.cpp
blob: ae65bda025e2323c96929ca16cabb74d8b533c1d [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
decltype
([]()->
decltype
(
this
)
{
})
a
;
// expected-error {{invalid use of 'this' outside of a non-static member function}}