summaryrefslogtreecommitdiff
path: root/lib/ccan/cast/test/compile_ok-static.c
blob: 98b667e83440f36020856fdcb89a00c171a29549 (plain)
1
2
3
4
5
6
7
8
9
10
/* OpenIndiana's CC (aka suncc) has issues with constants: make sure
 * we are one! */
#include <ccan/cast/cast.h>

static char *p = cast_const(char *, (const char *)"hello");

int main(int argc, char *argv[])
{
	return p[0] == argv[0][0];
}