brintos

brintos / llvm-project-archived public Read only

0
0
Text · 390 B · b1f9c5b Raw
7 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// RUN: %clang_cc1 -fsyntax-only -verify=expected,no-recovery -fno-recovery-ast %s3 4int a() {} // expected-warning {{non-void function does not return a value}}5constexpr void (*d)() = a; // expected-error {{cannot initialize a variable of type}}6const void *f = __builtin_function_start(d);  // no-recovery-error {{argument must be a function}}7