mirror of
https://github.com/rui314/chibicc
synced 2025-02-23 17:14:02 +03:00
16 lines
331 B
Plaintext
16 lines
331 B
Plaintext
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
void assert(int expected, int actual, char *code) {
|
|
if (expected == actual) {
|
|
printf("%s => %d\n", code, actual);
|
|
} else {
|
|
printf("%s => %d expected but got %d\n", code, expected, actual);
|
|
exit(1);
|
|
}
|
|
}
|
|
|
|
static int static_fn() { return 5; }
|
|
int ext1 = 5;
|
|
int *ext2 = &ext1;
|