Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git] / test / FrontendC / 2007-02-25-C-DotDotDot.c
blob969602200c197ee96fd94a104ba54845dfbb5ea9
1 // RUN: %llvmgcc -O0 -S -o - -emit-llvm -fno-inline -fno-unit-at-a-time %s | \
2 // RUN: grep {call float @foo}
4 // Make sure the call to foo is compiled as:
5 // call float @foo()
6 // not
7 // call float (...)* bitcast (float ()* @foo to float (...)*)( )
9 static float foo() { return 0.0; }
10 float bar() { return foo()*10.0;}