|
|
@ -35,6 +35,7 @@ extern struct delicious *bakery(struct delicious **cake);
|
|
|
|
extern struct delicious *bakery2(struct delicious **cake,
|
|
|
|
extern struct delicious *bakery2(struct delicious **cake,
|
|
|
|
struct delicious **pie);
|
|
|
|
struct delicious **pie);
|
|
|
|
extern struct delicious *returnPassByRef();
|
|
|
|
extern struct delicious *returnPassByRef();
|
|
|
|
|
|
|
|
extern void skip(struct delicious * s);
|
|
|
|
|
|
|
|
|
|
|
|
struct delicious *skip_external_function(void) {
|
|
|
|
struct delicious *skip_external_function(void) {
|
|
|
|
struct delicious *cake = NULL;
|
|
|
|
struct delicious *cake = NULL;
|
|
|
@ -87,3 +88,10 @@ void returnPassByRefDeref() {
|
|
|
|
ret->yum = 2; // should not report a warning
|
|
|
|
ret->yum = 2; // should not report a warning
|
|
|
|
free(ret);
|
|
|
|
free(ret);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int passStructByRefDeref() {
|
|
|
|
|
|
|
|
struct delicious d;
|
|
|
|
|
|
|
|
d.yum = 7;
|
|
|
|
|
|
|
|
skip(&d);
|
|
|
|
|
|
|
|
return 1 / d.yum; // should not report a warning
|
|
|
|
|
|
|
|
}
|
|
|
|