poly_int: subreg_get_info
[official-gcc.git] / libffi / testsuite / libffi.call / err_bad_typedef.c
blobbf6016186170d4f892ee26c5b21ef48242f4dda6
1 /* Area: ffi_prep_cif
2 Purpose: Test error return for bad typedefs.
3 Limitations: none.
4 PR: none.
5 Originator: Blake Chaffin 6/6/2007 */
7 /* { dg-do run } */
9 #include "ffitest.h"
11 int main (void)
13 ffi_cif cif;
14 ffi_type* arg_types[1];
16 ffi_type badType = ffi_type_void;
18 arg_types[0] = NULL;
20 badType.size = 0;
22 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 0, &badType,
23 arg_types) == FFI_BAD_TYPEDEF);
25 exit(0);