The data blocks for a single locale category must be contiguous and the LC_INDEX_END macro must be the last macro in the sequence.
The examples in each locale category use two test macros that are defined as:
#define EQI(i,j) assert(i==j)
#define EQS(s,t) assert(!strcmp(s,t))