Sign in
fuchsia
/
third_party
/
llvm-project
/
refs/heads/upstream/revert-157793-fix-codeql-errors
/
.
/
clang
/
test
/
SemaCXX
/
invalid-this-in-lambda.cpp
blob: ae65bda025e2323c96929ca16cabb74d8b533c1d [
file
] [
log
] [
blame
] [
edit
]
// 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}}