Sign in
llvm
/
llvm-project
/
refs/heads/users/ilovepi/spr/main.fuchsiacmake-allow-using-fatlto-when-building-runtimes-1
/
.
/
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}}