aboutsummaryrefslogtreecommitdiff
path: root/src/blog/2023-11-14-test-visibility-c-macro/test4.c
blob: 9298e894e7fdb510ca36365d46bc7e050888808b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int foo(int, int);

int main() {
	int result = foo(1, 1);

	if (result == -27) {
		fprintf(stderr, "Test passed\n");
		return 0;
	} else {
		fprintf(stderr, "Test failed: expected -27, got %d\n", result);
		return 1;
	}
}

Generated with cgit - Back to sebastiano.tronto.net