]> granicus.if.org Git - clang/commitdiff
Check for ret, so that we know we hit the end of the function
authorDouglas Gregor <dgregor@apple.com>
Wed, 24 Mar 2010 23:19:27 +0000 (23:19 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 24 Mar 2010 23:19:27 +0000 (23:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99448 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/references.cpp

index a15d4069c204138da4f675309e176dd461d3e2db..5a5947dd8162421e0dc8f5f5fa6bf5c4745f4487 100644 (file)
@@ -153,4 +153,5 @@ void f0(s1 a) { s1 b = a; }
 // CHECK: alloca
 // CHECK: store
 // CHECK: load
+// CHECK: ret
 const int &f2() { return 0; }