tests2: rework 117..119 to follow our conventions
commitd746e32349566e517f878e7278a3a4fb32b34941
authorgrischka <grischka>
Wed, 8 Jul 2020 02:37:04 +0000 (8 04:37 +0200)
committergrischka <grischka>
Fri, 21 Aug 2020 19:44:11 +0000 (21 21:44 +0200)
tree101ec7e9016104ceed2861c28e2d3a15b3b33527
parentf9870f786080f788abec9d4b6e565ff02a469a9a
tests2: rework 117..119 to follow our conventions

Please respect some conventions:

- tests2 filenames don't end with '..._test'

- tests2 tests are meant to produce some output

- the output should be somehow informative, not just
  "error" or "dummy". Because other people would want to
  know where it fails if it does.

- tests2 tests should work with both GCC and TCC, except
  if there are specifc reasons (like testing tcc-only
  feature such as bounds checking)

- tests2 tests should never crash or abort.  Because that
  would cause gui dialogs to pop up on windows, and because
  other people would not know where it fails if it does.

- tests2 tests should be somehow specific, in general.
  (rather than just collections of random stuff)

- in general, do not use 'long' if you mean 'larger than int'
  Because it isn't on many platforms.

- use four (4) spaces for block indention.  Do not insert
  tab characters in files if possible.

Also:
- tccgen.c:gen_cast() simplify last fix.
tccgen.c
tests/tests2/117_builtins.c [new file with mode: 0644]
tests/tests2/117_builtins.expect [new file with mode: 0644]
tests/tests2/117_gcc_test.c [deleted file]
tests/tests2/117_gcc_test.expect [deleted file]
tests/tests2/118_switch.c [moved from tests/tests2/118_switch_test.c with 100% similarity]
tests/tests2/118_switch.expect [moved from tests/tests2/118_switch_test.expect with 100% similarity]
tests/tests2/119_random_stuff.c [new file with mode: 0644]
tests/tests2/119_random_stuff.expect [new file with mode: 0644]
tests/tests2/Makefile