summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/ieee/builtin-nan-1.c
blob: a487dd4afd90e40f73f5163bbe15d7c6e05cff20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR middle-end/19983 */

typedef __SIZE_TYPE__ size_t;

extern void abort(void);
extern int memcmp(const void *, const void *, size_t);

double n1 = __builtin_nan("0x1");
double n2 = __builtin_nan("0X1");

int main()
{
  if (memcmp (&n1, &n2, sizeof(double)))
    abort();
  return 0;
}