summaryrefslogtreecommitdiffstats
path: root/op-flasher/pflash/ccan/check_type/test/compile_fail-check_type_unsigned.c
blob: 8c0227af24ba7b57dfc7ed291d2ae25aeb014562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <ccan/check_type/check_type.h>

int main(int argc, char *argv[])
{
#ifdef FAIL
#if HAVE_TYPEOF
	check_type(argc, unsigned int);
#else
	/* This doesn't work without typeof, so just fail */
#error "Fail without typeof"
#endif
#endif
	return 0;
}
OpenPOWER on IntegriCloud