Sign in
llvm
/
llvm-project
/
df14dbd8750fba7851a3fd8878db3692c20a28d1
/
.
/
clang
/
test
/
Sema
/
attr-lifetimebound.c
blob: e1c714cb27dc8b9d7a6a3a969802702108e159d9 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -std=c99 -verify %s
int
*
f
(
int
*
p __attribute__
((
lifetimebound
)));
int
*
g
()
{
int
i
;
return
f
(&
i
);
// expected-warning {{address of stack memory associated with local variable 'i' returned}}
}