Commit 2b140e9
Kostiantyn Lazukin
[compiler-rt] Fix
The test `addtf3_test.c` is currently guarded by `#if defined(CRT_HAS_IEEE_TF)`,
a macro that is declared in `int_lib.h`. However, `int_lib.h` is included *after*
the preprocessor check, which results in the macro not being defined in time
and causes the test to always be skipped.
This patch moves the includes of `fp_test.h` and `int_lib.h` to the top of the
file so that `CRT_HAS_IEEE_TF` is defined before it is checked.addtf3_test.c being skipped due to misplaced include1 parent 4dd7fea commit 2b140e9
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
| |||
0 commit comments