summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/decimal/return-3_x.C
blob: 52e599c763105a5c0d396354f9c2ae3b2c64c1e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));

#include "return_x.h"

void
return_3_x (void)
{
DEBUG_INIT

#define T(NAME) testit##NAME ();

T(d32)
T(d64)
T(d128)

DEBUG_FINI

if (fails != 0)
  abort ();

#undef T
}