1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-27 05:40:17 +05:30

C: jokes/brexit.c: add _Noreturn, remove last empty line

This commit is contained in:
Intel A80486DX2-66 2024-02-04 11:38:43 +03:00
parent de0b86824d
commit 2001b310d7
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -7,10 +7,11 @@
#include <stdio.h> #include <stdio.h>
__attribute__((naked)) __attribute__((noreturn)) void Brexit(void); __attribute__((naked)) __attribute__((noreturn)) _Noreturn void Brexit(void);
__attribute__((naked)) __attribute__((naked))
__attribute__((noreturn)) __attribute__((noreturn))
_Noreturn
void Brexit(void) { void Brexit(void) {
__asm__ volatile ( __asm__ volatile (
"movl $0x7F, %%ebx\n\t" "movl $0x7F, %%ebx\n\t"
@ -25,4 +26,3 @@ void Brexit(void) {
int main(void) { int main(void) {
Brexit(); Brexit();
} }