Debian Codegraph @

clang/test/SemaCXX/gh113323.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify=expected,no-recovery -fno-recovery-ast %s
3
4 int a() {} // expected-warning {{non-void function does not return a value}}
5 constexpr void (*d)() = a; // expected-error {{cannot initialize a variable of type}}
6 const void *f = __builtin_function_start(d); // no-recovery-error {{argument must be a function}}