blob: b1f9c5b26952d957291182afca3c8b22bc3c0f6e [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify=expected,no-recovery -fno-recovery-ast %s
int a() {} // expected-warning {{non-void function does not return a value}}
constexpr void (*d)() = a; // expected-error {{cannot initialize a variable of type}}
const void *f = __builtin_function_start(d); // no-recovery-error {{argument must be a function}}