19_visibility.c (523B)
1 /* Exercises the symbol-matrix cells the existing cases miss: 2 * 3 * - STV_PROTECTED visibility (p_func) 4 * - STT_FILE round-trip (clang emits one for the TU name) 5 * - STT_SECTION symbols (.text) 6 * - AArch64 mapping symbols `$x` / `$d` (STT_NOTYPE on a defined sym) 7 * 8 * STV_INTERNAL is not exercised because clang downgrades it to HIDDEN 9 * on this target, and STB_GNU_UNIQUE is glibc-specific and not in scope. */ 10 11 __attribute__((visibility("protected"))) int p_func(int x) { return x; } 12 13 const int p_data = 7;