Skip to content

Commit 20ed954

Browse files
committed
[NFCI][lldb][test] Avoid GNU extension for specifying mangling
`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.
1 parent 96a5289 commit 20ed954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
int asm_main() asm("asm_main");
2-
1+
// Explicit mangling is necessary as on Darwin an underscore is prepended to the symbol.
2+
int asm_main() __asm("asm_main");
33
int main() { return asm_main(); }

0 commit comments

Comments
 (0)