Sh-Zh-7 / CMinus

💻 A naïve compilation principal course design.
Do What The F*ck You Want To Public License
2 stars 0 forks source link

[test] CMinus code test #21

Open whaliendev opened 3 years ago

whaliendev commented 3 years ago
int a[1][2][3];
int a;
int b;

struct A {
    int a;
    struct SB{} k;
    struct SB c;
};
struct B {
    int a;
    struct B c;
};
int cnm(){
    return 0;
}
int func(int a,int b){
    return 0;
}
int nmsl(int a[1],int b);
int nmsl(int a,int a);
int nmsl(int a[1],int b){
    int c[1][2];
    int b;
    int d;
    struct A k;
    int e=k.c;
    int sb=nmsl(0,0);
    b=g;
    return 0;
}
struct B{
    struct B{} a;
};
int main(){
    return 0;
}
github-actions[bot] commented 3 years ago

Compile failed. The error(s) is(are):

Error type B at Line 20: mismatched input ';' expecting '{'
Error type A at Line 27: Illegal floating-point numbers!