ORCA-C/Tests/Deviance/D9.2.0.1.CC
2017-10-21 18:40:19 -05:00

29 lines
760 B
C++

/* Deviance Test 9.2.0.1: Ensure attempt to return an array or function */
/* from a function is detected */
#include <stdio.h>
/*****************************************************************************/
int ( g (float f) ) [] /* g is a func returning an array of integers */
{
printf ("This message should never appear\n");
}
/*****************************************************************************/
void ( f (void) ) () /* f is a func returning a func returning void */
{
printf ("This message should never appear\n");
}
/*****************************************************************************/
main ()
{
printf ("Failed Deviance Test 9.2.0.1\n");
}