global: added some tests

Currently all tests are passing, except `after.go`, we can create global
variable everywhere in the file, patch will come soon.

 * tests/global/ : Here.
1 job for hm/global in 2 minutes and 1 second (queued for 1 second)
Status Job ID Name Coverage
  Test
failed #128872
debian-stable-gcc

00:02:01

 
Name Stage Failure
failed
debian-stable-gcc Test
PASS: passes/pointer.go
PASS: passes/select.go
PASS: passes/slices.go
PASS: passes/struct.go
PASS: passes/switch.go
PASS: passes/variablename.go
2 errors found!
make: *** [Makefile:39: check] Error 1
ERROR: Job failed: exit code 1