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:
parent
de0b86824d
commit
2001b310d7
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user