Debian Codegraph @

clang/test/Sema/attr-lifetimebound.c

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