13_comdat.c (381B)
1 /* Exercises SHT_GROUP (COMDAT): C++ inline functions create one COMDAT 2 * group per definition. The SHT_GROUP section and SHF_GROUP flag on 3 * every member must survive the roundtrip. 4 * 5 * Compiled as C++ (-x c++) so that `inline` has the standard C++ 6 * semantics that produce COMDAT groups. */ 7 8 inline int comdat_fn() { return 42; } 9 10 int call_comdat() { return comdat_fn(); }