brintos

brintos / llvm-project-archived public Read only

0
0
Text · 314 B · df2fc2c Raw
13 lines · cpp
1// RUN: %clang_cc1 -std=c++1z -verify %s2 3void f(void() noexcept); // expected-note {{no known conversion from 'void ()' to 'void (*)() noexcept'}}4void f(void()) = delete; // expected-note {{explicitly deleted}}5 6void g();7void h() noexcept;8 9void test() {10  f(g); // expected-error {{call to deleted}}11  f(h);12}13