xref: /llvm-project/clang/test/CodeGen/2004-07-06-FunctionCast.c (revision 85e5156598b1bbad0ae41cf4d0d5b845dd655ffd)
1*85e51565SEric Christopher // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2*85e51565SEric Christopher 
unused_func(void)3*85e51565SEric Christopher static int unused_func(void) {
4*85e51565SEric Christopher   return 1;
5*85e51565SEric Christopher }
6*85e51565SEric Christopher 
foo(void)7*85e51565SEric Christopher int foo(void) {
8*85e51565SEric Christopher   (void)unused_func; /* avoid compiler warning */
9*85e51565SEric Christopher   return 2;
10*85e51565SEric Christopher }
11