ldmud/test/t-sefun/struct2.c
Alexander Motzkau dd86769c89 Unify global identifier handling in the compiler
The LPC compiler needs to differentiate between global identifiers that are
for the current program only (lfuns, global variables, structs), and
identifiers that are driver-global (efuns, simul-efuns). The former need to
be removed after compilation, the latter only cleaned.

The handling of this was spread throughout the code and done in different
ways, and sometimes not done at all (eg. for struct definitions).
2022-04-03 23:32:58 +02:00

6 lines
190 B
C

/* Check that the struct definition from test.c didn't persist.
* This would conflict with the following definition.
*/
struct sefunF001 { int i;};
struct sefunF001 x = (<sefunF001> 42);