Sign in
fuchsia
/
third_party
/
llvm-project
/
refs/heads/upstream/revert-140254-tim/floating-point-predicate-utils
/
.
/
clang
/
test
/
Sema
/
attr-lifetimebound.c
blob: e1c714cb27dc8b9d7a6a3a969802702108e159d9 [
file
] [
log
] [
blame
] [
edit
]
// 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}}
}