Sign in
cobalt
/
cobalt
/
1bdf8b5470dc937a8c92ce7e2f6d3392c6a1180c
/
.
/
third_party
/
llvm-project
/
clang
/
test
/
SemaCXX
/
deleted-function-access.cpp
blob: f355e41ae6c463bdd85a6fcf78bf40f6d591069f [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
struct
S
{
virtual
void
f
()
=
delete
;
//expected-note{{'f' has been explicitly marked deleted here}}
void
g
()
{
f
();
}
//expected-error{{attempt to use a deleted function}}
};