CONST_MAX breaks gcc on fedora 20 with optimiztation
This commit is contained in:
@@ -85,7 +85,6 @@ static void test_max(void) {
|
||||
/* CONST_MAX returns (void) instead of a value if the passed arguments
|
||||
* are not of the same type or not constant expressions. */
|
||||
assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(1, 10)), int));
|
||||
assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(d, 10)), void));
|
||||
assert_cc(__builtin_types_compatible_p(typeof(CONST_MAX(1, 1U)), void));
|
||||
|
||||
assert_se(val1.a == 100);
|
||||
|
||||
Reference in New Issue
Block a user