[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / deleted-function-access.cpp
blobf355e41ae6c463bdd85a6fcf78bf40f6d591069f
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
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 };