9 lines · c
1// RUN: %clang_cc1 -std=c99 -verify %s2 3int *f(int* p __attribute__((lifetimebound)));4 5int *g() {6 int i;7 return f(&i); // expected-warning {{address of stack memory associated with local variable 'i' returned}}8}9 1// RUN: %clang_cc1 -std=c99 -verify %s2 3int *f(int* p __attribute__((lifetimebound)));4 5int *g() {6 int i;7 return f(&i); // expected-warning {{address of stack memory associated with local variable 'i' returned}}8}9