source: rtems/testsuites/psxtests/psxhdrs/complex/casinhf.c @ 65b3fba

5
Last change on this file since 65b3fba was 65b3fba, checked in by zehata <zenon.hans.taneka@…>, on 12/05/18 at 23:02:39

Added POSIX Compliance Test for complex.h, and adding lines to define CYGWIN until complex.h is fixed (Ticket 3635) . (GCI 2018)

  • Property mode set to 100644
File size: 995 bytes
Line 
1/**
2 *  @file
3 *  @brief casinhf() API Conformance Test
4 */
5
6/*
7 *  COPYRIGHT (c) 2018.
8 *  Zenon (zehata).
9 *
10 *  Permission to use, copy, modify, and/or distribute this software
11 *  for any purpose with or without fee is hereby granted.
12 *
13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 */
21
22#ifdef HAVE_CONFIG_H
23#include "config.h"
24#endif
25
26#include <complex.h>
27
28int test(void);
29
30int test(void)
31{
32  float complex number;
33  float complex result;
34
35  number = 1.0 + 1.0 * I;
36  result = casinhf(number);
37  return (result != 0);
38}
Note: See TracBrowser for help on using the repository browser.