https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110103

            Bug ID: 110103
           Summary: the pointers return from two malloc is not equal
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhongyunde at huawei dot com
  Target Milestone: ---

test:https://gcc.godbolt.org/z/j74z1qaT9
```
int check_pointer (void)
{
   int *pa = (int *) malloc (sizeof (int) * NUM);
   int *pb = (int *) malloc (sizeof (int) * NUM);

   return pa == pb;
}

```

* llvm just return 0, while gcc not

Reply via email to