return -1
}
+set skip_float_test [gdb_skip_float_test]
+
# Compile a variant of structs.c using TYPES to specify the type of
# the first N struct elements (the remaining elements take the type of
# the last TYPES field). Run the compmiled program up to "main".
test_struct_calls 2
test_struct_returns 1
-# Approx size: 4, 8, ...
-start_structs_test { tf }
-test_struct_calls 1
-test_struct_calls 2
-test_struct_calls 3
-test_struct_returns 1
-test_struct_returns 2
-
-# Approx size: 8, 16, ...
-start_structs_test { td }
-test_struct_calls 1
-test_struct_calls 2
-test_struct_returns 1
-
-# Approx size: 16, 32, ...
-start_structs_test { tld }
-test_struct_calls 1
-test_struct_calls 2
-test_struct_returns 1
+if { !$skip_float_test } {
+ # Approx size: 4, 8, ...
+ start_structs_test { tf }
+ test_struct_calls 1
+ test_struct_calls 2
+ test_struct_calls 3
+ test_struct_returns 1
+ test_struct_returns 2
+
+ # Approx size: 8, 16, ...
+ start_structs_test { td }
+ test_struct_calls 1
+ test_struct_calls 2
+ test_struct_returns 1
+
+ # Approx size: 16, 32, ...
+ start_structs_test { tld }
+ test_struct_calls 1
+ test_struct_calls 2
+ test_struct_returns 1
+}
# Approx size: 2+1=3, 4, ...
start_structs_test { ts tc }
start_structs_test { tll tc }
test_struct_calls 2
-# Approx size: 4+1=5, 6, ...
-start_structs_test { tf tc }
-test_struct_calls 2
-test_struct_calls 3
-test_struct_calls 4
-test_struct_calls 5
-test_struct_calls 6
-test_struct_returns 2
-
-# Approx size: 8+1=9, 10, ...
-start_structs_test { td tc }
-test_struct_calls 2
-
-# Approx size: 16+1=17, 18, ...
-start_structs_test { tld tc }
-test_struct_calls 2
+if { !$skip_float_test } {
+ # Approx size: 4+1=5, 6, ...
+ start_structs_test { tf tc }
+ test_struct_calls 2
+ test_struct_calls 3
+ test_struct_calls 4
+ test_struct_calls 5
+ test_struct_calls 6
+ test_struct_returns 2
+
+ # Approx size: 8+1=9, 10, ...
+ start_structs_test { td tc }
+ test_struct_calls 2
+
+ # Approx size: 16+1=17, 18, ...
+ start_structs_test { tld tc }
+ test_struct_calls 2
+}
# Approx size: (1+1)+2=4, 6, ...
start_structs_test { tc ts }
start_structs_test { tc tll }
test_struct_calls 2
-# Approx size: (1+3)+4=8, 12, ...
-start_structs_test { tc tf }
-test_struct_calls 2
-test_struct_calls 3
-test_struct_calls 4
+if { !$skip_float_test } {
+ # Approx size: (1+3)+4=8, 12, ...
+ start_structs_test { tc tf }
+ test_struct_calls 2
+ test_struct_calls 3
+ test_struct_calls 4
-# Approx size: (1+7)+8=16, 24, ...
-start_structs_test { tc td }
-test_struct_calls 2
-
-# Approx size: (1+15)+16=32, 48, ...
-start_structs_test { tc tld }
-test_struct_calls 2
+ # Approx size: (1+7)+8=16, 24, ...
+ start_structs_test { tc td }
+ test_struct_calls 2
-# Some float combinations
+ # Approx size: (1+15)+16=32, 48, ...
+ start_structs_test { tc tld }
+ test_struct_calls 2
-# Approx size: 8+4=12, 16, ...
-start_structs_test { td tf }
-test_struct_calls 2
-test_struct_returns 2
+ # Some float combinations
-# Approx size: (4+4)+8=16, 32, ...
-start_structs_test { tf td }
-test_struct_calls 2
-test_struct_returns 2
+ # Approx size: 8+4=12, 16, ...
+ start_structs_test { td tf }
+ test_struct_calls 2
+ test_struct_returns 2
+ # Approx size: (4+4)+8=16, 32, ...
+ start_structs_test { tf td }
+ test_struct_calls 2
+ test_struct_returns 2
+}
return 0