-
-
Notifications
You must be signed in to change notification settings - Fork 38
flow analysis #404
Copy link
Copy link
Open
Description
I believe the following code is not producing the expected result or diagnostics.
#pragma safety enable
void* _Owner _Opt calloc(unsigned long i, unsigned long size);
void free(void* _Owner _Opt ptr);
int main() {
try {
int * _Owner p1 = calloc(1, sizeof * p1)!;
defer free(p1);
return 0;
}
catch { }
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels