summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e031b4f)
Only parameters that are pointers or functions may have the "void" type
specifier.
This apparently doesn't come up often, so increase the default number of
test iterations to make it more likely.
.declarators = gen_declarators(rng),
};
.declarators = gen_declarators(rng),
};
- if (param->declarators->type == CDECL_DECL_ARRAY
- || param->declarators->type == CDECL_DECL_IDENT)
+ if (param->declarators->type != CDECL_DECL_POINTER
+ && param->declarators->type != CDECL_DECL_FUNCTION)
flags |= GEN_NO_VOID;
param->specifiers = gen_declspecs(rng, flags);
flags |= GEN_NO_VOID;
param->specifiers = gen_declspecs(rng, flags);
# This is free software: you are free to do what the fuck you want to.
# There is NO WARRANTY, to the extent permitted by law.
# This is free software: you are free to do what the fuck you want to.
# There is NO WARRANTY, to the extent permitted by law.
-: "${RANDOMSEED=$RANDOM}" "${TESTITER=100}"
+: "${RANDOMSEED=$RANDOM}" "${TESTITER=500}"
randomdecl=test/randomdecl$EXEEXT
crossparse=test/crossparse$EXEEXT
randomdecl=test/randomdecl$EXEEXT
crossparse=test/crossparse$EXEEXT
while read decl
do
count=`expr $count + 1`
while read decl
do
count=`expr $count + 1`
- $crossparse "$decl" || { result=fail; break; }
+ $crossparse "$decl" || { result=fail
+ printf 'original input: %s\n' "$decl" 1>&2
+ break
+ }
done
echo "result=$result"
done
echo "result=$result"