summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/references.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-24 23:19:27 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-24 23:19:27 +0000
commit99970f008cd8ccb279752ae092699ef8061cbe39 (patch)
tree64cb9a75e0a4e1ea85d204bff3b2ad74735e6f8c /clang/test/CodeGenCXX/references.cpp
parent02dde146e09deb425b96f8308d5ec428f352501c (diff)
downloadbcm5719-llvm-99970f008cd8ccb279752ae092699ef8061cbe39.tar.gz
bcm5719-llvm-99970f008cd8ccb279752ae092699ef8061cbe39.zip
Check for ret, so that we know we hit the end of the function
llvm-svn: 99448
Diffstat (limited to 'clang/test/CodeGenCXX/references.cpp')
-rw-r--r--clang/test/CodeGenCXX/references.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/references.cpp b/clang/test/CodeGenCXX/references.cpp
index a15d4069c20..5a5947dd816 100644
--- a/clang/test/CodeGenCXX/references.cpp
+++ b/clang/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; }
OpenPOWER on IntegriCloud