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
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
deleted-function-access.cpp
blob
f355e41ae6c463bdd85a6fcf78bf40f6d591069f
1
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
2
3
struct
S
{
4
virtual
void
f
() =
delete
;
//expected-note{{'f' has been explicitly marked deleted here}}
5
void
g
() {
f
(); }
//expected-error{{attempt to use a deleted function}}
6
};