scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <assert.h>
 2#include <stdio.h>
 3#include <string.h>
 4
 5/*
 6output:
 7testing
 8done
 9end:
10*/
11
12int
13main()
14{
15	puts("testing");
16
17	assert(strcmp("abcd", "abcd") == 0);
18	assert(strcmp("abcd", "a") > 0);
19	assert(strcmp("a", "abcd") < 0);
20	assert(strcmp("aa", "ab") < 0);
21	assert(strcmp("ab", "aa") > 0);
22	assert(strcmp("", "a") < 0);
23	assert(strcmp("a", "") > 0);
24
25	puts("done");
26
27	return 0;
28}