1 2// Although useless, enums may be empty. 3enum { }; 4 5enum 6{ 7 R_Test1, // starts at 0 8 R_Test2 9}; 10 11enum 12{ 13 R_Test10, // is also 0 14 R_Test11 = 1000, 15 R_Test12 = 1111, 16 R_Test13, // should be 1112 17 R_Test14 = 999, 18 R_Test15 = -999, // may have comma 19}; 20 21//enum { R_Test10 = 7 }; // duplicate symbol 22 23resource(R_Test1) 123; 24//resource(R_Test10) 123; // duplicate resource 25resource(R_Test11) 123; 26resource(R_Test15) 123; 27resource(R_Test15) "123"; 28//resource(R_NotExists) 123; // unknown symbol 29 30resource(R_Test12) 123; 31resource(R_Test13) 123; // should have ID 1112 32resource(R_Test13, "yeah") $"4041"; // R_RAWT_yeah 33resource(R_Test13, "yeah\0what") 10.0; // R_FLOT_yeah 34//resource(R_Test13, "yeah\0what") $"4041"; // duplicate resource 35