mirror of
https://github.com/opnsense/src.git
synced 2026-02-24 18:30:55 -05:00
http://llvm.org/svn/llvm-project/cfe/branches/release_28@114020 Approved by: rpaulo (mentor)
8 lines
333 B
C++
8 lines
333 B
C++
// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
|
|
|
|
// FIXME: Only the stack-address checking in Sema catches this right now, and
|
|
// the stack analyzer doesn't handle the ImplicitCastExpr (lvalue).
|
|
const int& g() {
|
|
int s;
|
|
return s; // expected-warning{{reference to stack memory associated with local variable 's' returned}}
|
|
}
|