llvm-for-llvmta/tools/clang/test/SemaCXX/deleted-function-access.cpp

7 lines
240 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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}}
};