annotate gcc/testsuite/gcc.dg/floatn-typeof.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Tests for _FloatN / _FloatNx types: test types of constants.
kono
parents:
diff changeset
2 Before including this file, define WIDTH as the value N; define EXT
kono
parents:
diff changeset
3 to 1 for _FloatNx and 0 for _FloatN. */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 #define CONCATX(X, Y) X ## Y
kono
parents:
diff changeset
6 #define CONCAT(X, Y) CONCATX (X, Y)
kono
parents:
diff changeset
7 #define CONCAT3(X, Y, Z) CONCAT (CONCAT (X, Y), Z)
kono
parents:
diff changeset
8 #define CONCAT4(W, X, Y, Z) CONCAT (CONCAT (CONCAT (W, X), Y), Z)
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 #if EXT
kono
parents:
diff changeset
11 # define TYPE CONCAT3 (_Float, WIDTH, x)
kono
parents:
diff changeset
12 # define CST(C) CONCAT4 (C, f, WIDTH, x)
kono
parents:
diff changeset
13 # define CSTU(C) CONCAT4 (C, F, WIDTH, x)
kono
parents:
diff changeset
14 #else
kono
parents:
diff changeset
15 # define TYPE CONCAT (_Float, WIDTH)
kono
parents:
diff changeset
16 # define CST(C) CONCAT3 (C, f, WIDTH)
kono
parents:
diff changeset
17 # define CSTU(C) CONCAT3 (C, F, WIDTH)
kono
parents:
diff changeset
18 #endif
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 extern TYPE test_type;
kono
parents:
diff changeset
21 extern __typeof (CST (1.0)) test_type;
kono
parents:
diff changeset
22 extern __typeof (CSTU (1.0)) test_type;