LangProc / langproc-2018-cw

5 stars 4 forks source link

Required Test GLOBAL #45

Closed theriverneil closed 5 years ago

theriverneil commented 5 years ago

One of the required tests, GLOBAL, has the description "Check that global variables can be shared between object files." For global variables to be shared between files, the keyword 'extern' is required so that all functions in different files can use it but this functionality is never mentioned in the spec for the C Compiler. Could you clear this up please?

johnwickerson commented 5 years ago

The extern declaration could be in the driver code.