From: Douglas Gregor Date: Wed, 24 Mar 2010 23:19:27 +0000 (+0000) Subject: Check for ret, so that we know we hit the end of the function X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f748845b19813d81189283f76778cfc870f6cfd7;p=clang Check for ret, so that we know we hit the end of the function git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99448 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/references.cpp b/test/CodeGenCXX/references.cpp index a15d4069c2..5a5947dd81 100644 --- a/test/CodeGenCXX/references.cpp +++ b/test/CodeGenCXX/references.cpp @@ -153,4 +153,5 @@ void f0(s1 a) { s1 b = a; } // CHECK: alloca // CHECK: store // CHECK: load +// CHECK: ret const int &f2() { return 0; }