brintos

brintos / llvm-project-archived public Read only

0
0
Text · 218 B · e1c714c Raw
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