blob: 4a740dafb382b80a5376d98f04e5a809621a0ccf [file] [log] [blame]
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* Test that the function:
* int posix_typed_mem_get_info(int, struct posix_typed_mem_info *)
* is declared.
*
* @pt:TYM
*/
#include <sys/mman.h>
#include <unistd.h>
#if defined(_POSIX_TYPED_MEMORY_OBJECTS) && _POSIX_TYPED_MEMORY_OBJECTS != -1
typedef int (*posix_typed_mem_get_info_test)(int, struct posix_typed_mem_info *);
int dummyfcn (void)
{
posix_typed_mem_get_info_test dummyvar;
dummyvar = posix_typed_mem_get_info;
return 0;
}
#endif