Raul Tambre 2f7a5f7ffd
[NFCI][lldb][test] Avoid GNU extension for specifying mangling (#167221)
`asm()` on function declarations is used for specifying the mangling.
But that specific spelling is a GNU extension unlike `__asm()`.

Found by building with `-std=c2y` in Clang's C frontend's config file.
2025-11-11 23:13:30 +02:00

4 lines
157 B
C

// Explicit mangling is necessary as on Darwin an underscore is prepended to the symbol.
int asm_main() __asm("asm_main");
int main() { return asm_main(); }