================ @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s -pedantic-errors + +static void *f(void); // expected-error {{function 'f' has internal linkage but is not defined}} + +int main(void) +{ + int j = _Generic(&f, void *(*)(void): 10, default: 20); + // expected-no-diagnostic@-1 + + void *k = _Generic(&f, void *(*)(void): f(), default: 20); ---------------- AaronBallman wrote:
```suggestion int j = _Generic(&f, void (*)(void): 0); void *k = _Generic(&f, void (*)(void): f, default: 0); // expected-note {{used here}} ``` https://github.com/llvm/llvm-project/pull/98016 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits