Commit | Line | Data |
---|---|---|
00d5215e UW |
1 | /* This testcase is part of GDB, the GNU debugger. |
2 | ||
3 | Copyright 2016 Free Software Foundation, Inc. | |
4 | ||
5 | This program is free software; you can redistribute it and/or modify | |
6 | it under the terms of the GNU General Public License as published by | |
7 | the Free Software Foundation; either version 3 of the License, or | |
8 | (at your option) any later version. | |
9 | ||
10 | This program is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | GNU General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU General Public License | |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
17 | ||
18 | #include <stdio.h> | |
19 | #include <stdlib.h> | |
20 | ||
21 | _Float32 f32; | |
22 | _Float64 f64; | |
23 | _Float128 f128; | |
24 | _Float32x f32x; | |
25 | _Float64x f64x; | |
26 | ||
27 | _Complex _Float32 c32; | |
28 | _Complex _Float64 c64; | |
29 | _Complex _Float128 c128; | |
30 | _Complex _Float32x c32x; | |
31 | _Complex _Float64x c64x; | |
32 | ||
33 | int main() | |
34 | { | |
35 | f32 = 1.5f32; | |
36 | f64 = 2.25f64; | |
37 | f128 = 3.375f128; | |
38 | f32x = 10.5f32x; | |
39 | f64x = 20.25f64x; | |
40 | ||
41 | c32 = 1.5f32 + 1.0if; | |
42 | c64 = 2.25f64 + 1.0if; | |
43 | c128 = 3.375f128 + 1.0if; | |
44 | c32x = 10.5f32x + 1.0if; | |
45 | c64x = 20.25f64x + 1.0if; | |
46 | ||
47 | return 0; | |
48 | } |