☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
Sema
/
attr-lifetimebound.c
☽
☼
clang/test/Sema/attr-lifetimebound.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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
}