Commit d8d9ac29 authored by Bednárek David RNDr. Ph.D.'s avatar Bednárek David RNDr. Ph.D.
Browse files

cecko3 tests

parent 9c78c8e3
========== tables ==========
// --- ENUMS ---
// --- STRUCTS ---
// --- GLOBAL TYPEDEFS ---
struct Str{
const char*key;
struct Str*next;
};
// --- GLOBAL TYPEDEFS ---
typedef struct _file_s FILE;
// --- FUNCTION DECLARATIONS ---
void argreverttest(int,char**);
......@@ -34,39 +32,49 @@ _Bool status;
void argreverttest(int argc,char**argv){
int i;
const char*z;
{
}
{
}
}
_Bool empty(struct Str**rootp){
}
int fib(int x){
int s;
{
}
}
void fibtest(){
void fibtest(void){
int n;
int s;
}
const char*front(struct Str**rootp){
}
struct Str*get_str(){
struct Str*get_str(void){
struct Str*p;
}
int main(int argc,char**argv){
{
}
}
void pointerarithmeticstest(){
void pointerarithmeticstest(void){
char arr[27];
char ch;
char*e;
char*p;
{
}
}
void pop_front(struct Str**rootp){
}
void push_front(struct Str**rootp,const char*key){
struct Str*p;
}
void stringtest(){
void stringtest(void){
char arr[100];
int i;
char t[40];
}
_Bool test(){
_Bool test(void){
}
========== cecko3 done ==========
......@@ -120,8 +120,10 @@ void pointerarithmeticstest(void)
e = arr + 26;
while (p != e)
{
int locvar;
locvar = ch + 1;
*p = ch;
ch = ch + 1;
ch = locvar;
p = p + 1;
}
*p = 0;
......
========== tables ==========
// --- ENUMS ---
// --- GLOBAL TYPEDEFS ---
enum En{
ALPHA=0,
BETA=729,
GAMMA=730
};
// --- STRUCTS ---
struct Str{
const char*key;
struct Str*next;
};
// --- GLOBAL TYPEDEFS ---
typedef struct _file_s FILE;
typedef enum En ent;
typedef struct Str*str_ptr;
......@@ -45,42 +43,53 @@ _Bool status;
void argreverttest(int argc,char**argv){
int i;
const char*z;
{
}
{
}
}
_Bool empty(struct Str**rootp){
}
int fib(int x){
int s;
{
}
}
void fibtest(){
void fibtest(void){
int n;
int s;
}
const char*front(struct Str**rootp){
}
struct Str*get_str(){
struct Str*get_str(void){
struct Str*p;
}
int main(int argc,char**argv){
{
}
}
void pointerarithmeticstest(){
void pointerarithmeticstest(void){
char arr[27];
char ch;
char*e;
char*p;
{
int locvar;
}
}
void pop_front(struct Str**rootp){
}
void push_front(struct Str**rootp,const char*key){
struct Str*p;
}
void stringtest(){
void stringtest(void){
char arr[100];
int i;
char t[40];
}
_Bool test(){
_Bool test(void){
}
void test_enum(){
void test_enum(void){
enum En x;
}
enum En test_enum_internal(enum En arg){
......
========== tables ==========
// --- GLOBAL TYPEDEFS ---
typedef struct _file_s FILE;
// --- FUNCTION DECLARATIONS ---
int main(int,char**);
void*memset(void*,int,int);
int printf(const char*,...);
int scanf(const char*,...);
int sprintf(char*,const char*,...);
int sscanf(const char*,const char*,...);
// --- GLOBAL VARIABLES ---
// --- FUNCTION DEFINITIONS ---
int main(int argc,char**argv){
int arr[42];
int darr[4][2];
int i;
int j;
}
========== cecko3 done ==========
========== tables ==========
// --- GLOBAL TYPEDEFS ---
enum days{
MON=0,
TUE=1,
WED=2,
THU=3,
WRI=4,
SAT=15,
SUN=16
};
typedef struct _file_s FILE;
// --- FUNCTION DECLARATIONS ---
int main(int,char**);
void*memset(void*,int,int);
int printf(const char*,...);
int scanf(const char*,...);
int sprintf(char*,const char*,...);
int sscanf(const char*,const char*,...);
// --- GLOBAL VARIABLES ---
// --- FUNCTION DEFINITIONS ---
int main(int argc,char**argv){
enum rgb{
RED=0,
GREEN=1,
BLUE=2
};
enum rgb color;
enum days day;
}
========== cecko3 done ==========
========== tables ==========
// --- GLOBAL TYPEDEFS ---
struct mighty_str{
char c;
int x;
int y;
};
typedef struct _file_s FILE;
// --- FUNCTION DECLARATIONS ---
int main(int,char**);
void*memset(void*,int,int);
int printf(const char*,...);
int scanf(const char*,...);
int sprintf(char*,const char*,...);
int sscanf(const char*,const char*,...);
// --- GLOBAL VARIABLES ---
int x;
// --- FUNCTION DEFINITIONS ---
int main(int argc,char**argv){
struct god_str{
struct mighty_str ims_;
};
struct god_str gs;
struct mighty_str ms;
{
struct mighty_str*ps;
}
{
struct god_str*ps;
}
}
========== cecko3 done ==========
========== tables ==========
// --- GLOBAL TYPEDEFS ---
typedef struct _file_s FILE;
typedef enum En ent;
typedef struct Str*str_ptr;
// --- FUNCTION DECLARATIONS ---
int main(int,char**);
void*memset(void*,int,int);
int printf(const char*,...);
int scanf(const char*,...);
int sprintf(char*,const char*,...);
int sscanf(const char*,const char*,...);
// --- GLOBAL VARIABLES ---
// --- FUNCTION DEFINITIONS ---
int main(int argc,char**argv){
enum En*e;
struct _file_s*myout;
struct Str*p;
}
========== cecko3 done ==========
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment