Skip to content

Commit b46e4bf

Browse files
committed
Improve gcc-4 and -7 tests
These now check all ts18661 types, and the wrapper scripts avoid argument re-parsing
1 parent b0d1f9e commit b46e4bf

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

3-
gcc -Wno-macro-redefined -U __clang_major__ -D __GNUC__=4 -D __GNUC_MINOR__=9 -D __GNUC_PATCHLEVEL__=1 $*
3+
gcc -Wno-macro-redefined -U __clang_major__ -D __GNUC__=4 -D __GNUC_MINOR__=2 -D __GNUC_PATCHLEVEL__=1 "$@"
44

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

3-
gcc -Wno-macro-redefined -U __clang_major__ -D __GNUC__=7 -D __GNUC_MINOR__=0 -D __GNUC_PATCHLEVEL__=0 $*
3+
gcc -Wno-macro-redefined -U __clang_major__ -D __GNUC__=7 -D __GNUC_MINOR__=0 -D __GNUC_PATCHLEVEL__=0 "$@"
44

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
typedef double _Float64;
1+
// None of these types should be defined when emulating gcc-4:
22

3+
typedef float _Float32;
4+
typedef double _Float32x;
5+
typedef double _Float64;
6+
typedef long double _Float64x;
7+
typedef long double _Float128;
8+
typedef long double _Float128x;
+7-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
_Float64 some_var;
2-
1+
// All these types should be provided when emulating gcc-7:
2+
_Float32 f32;
3+
_Float32x f32x;
4+
_Float64 f64;
5+
_Float64x f64x;
6+
_Float128 f128;
7+
_Float128x f128x;

0 commit comments

Comments
 (0)