Skip to content

The EXPECTEDFAIL_NOALIAS in cs_tests/recur9.c should be NOALIAS? #28

Description

@taquangtrung

Hi,

In this test case, I think the assertion EXPECTEDFAIL_NOALIAS(b,&b1) should be NOALIAS(b,&b1)?

It is very similar to the assertion NOALIAS(c,&c1), which I think is correct.

// cs_tests/recur9.c

#include "aliascheck.h"
int z;
void foo(int **a);
void bar(int **q){
    int** a = malloc(10);
    foo(a);
}

void foo(int **a){
    *a = &z;
    bar(a);
}

int main(){
    int** a,*b,*c,b1,c1;
    b = &b1;
    a = &b;
    foo(a);
    MUSTALIAS(b,&z);
    EXPECTEDFAIL_NOALIAS(b,&b1);
    a = &c;
    foo(a);
    MUSTALIAS(c,&z);
    NOALIAS(c,&c1);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions