summaryrefslogtreecommitdiff
path: root/ccan/structeq/test/compile_fail-different.c
blob: 9a08503fbb1fb4a947f63efb5f804ab03124ec26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <ccan/structeq/structeq.h>

struct mydata1 {
	int start, end;
};

struct mydata2 {
	int start, end;
};

int main(void)
{
	struct mydata1 a = { 0, 100 };
#ifdef FAIL
	struct mydata2
#else
	struct mydata1
#endif
		b = { 0, 100 };

	return structeq(&a, &b);
}