Lines Matching refs:code
10 # 1. Redistributions of source code must retain the above copyright
242 cat <<-\EOF > code.c
245 cp code.c code.c.orig
248 # a file named 'code.c/subdir', but 'code.c' is already a regular
251 -e 'inline:indent: code.c/subdir: Not a directory\n' \
252 env SIMPLE_BACKUP_SUFFIX="/subdir" "$indent" code.c
255 atf_check -o 'file:code.c.orig' \
256 cat code.c
270 echo '/* comment */' > code.c
274 "$indent" code.c code.c
280 echo '/* comment */' > code.c
283 "$indent" code.c ./code.c
288 cat code.c
312 echo 'struct{' > code.c
315 'error: code.c:1: Stuff missing from end of file' \
316 code.c
320 cat code.c
326 echo '}' > code.c
329 'error: code.c:1: Statement nesting error' \
330 code.c
333 cat code.c
339 echo 'int i = 3};' > code.c
342 'error: code.c:1: Statement nesting error' \
343 code.c
345 # best-effort rewrite of the code.
348 cat code.c
354 cat <<-\EOF > code.c
362 error: code.c:3: Unbalanced parentheses
363 warning: code.c:4: Extra ')'
367 "$indent" code.c
374 cat <<-\EOF > code.c
382 error: code.c:4: Unbalanced parentheses
383 error: code.c:4: Statement nesting error
387 "$indent" code.c
394 # trying to format the following artificial code.
396 printf '{if(expr\n)/*c*/;}\n' > code.c
398 cat <<\EOF > code.exp
406 atf_check -o 'file:code.exp' \
407 "$indent" code.c -st
416 cat <<EOF > code.c
438 "$indent" -l34 code.c -st
444 cat <<-EOF > code.c
452 -e 'inline:error: code.c:3: Stuff missing from end of file\n' \
453 "$indent" code.c
455 cat <<-EOF > code.c
463 -e 'inline:error: code.c:3: Stuff missing from end of file\n' \
464 "$indent" code.c