cake icon indicating copy to clipboard operation
cake copied to clipboard

ownership : expected error

Open thradams opened this issue 1 year ago • 0 comments

#include <ownership.h> 
#include <stdlib.h>
#include <string.h>

void f(char * owner * p) {
 *p = strdup("a");
}

void test2()
{
  char * s = NULL;
  f(&s);  //expected error
}

thradams avatar Dec 15 '23 19:12 thradams