Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2009-06-01-addrofknr.c
blobc769b63bf7f0e8bc5564e81ea21f6e863c0057f2
1 // RUN: %clang_cc1 %s -o %t -emit-llvm -verify -std=c89
2 // PR4289
4 struct funcptr {
5 int (*func)();
6 };
8 static int func(f) // expected-warning {{a function definition without a prototype is deprecated in all versions of C and is not supported in C23}}
9 void *f;
11 return 0;
14 int
15 main(int argc, char *argv[])
17 struct funcptr fp;
19 fp.func = &func;
20 fp.func = func;