aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/reference-cast.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-08-14 04:50:34 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-08-14 04:50:34 +0000
commitec24b0ed9ccf8b34986eadeb98dd0b4a0a50f6f2 (patch)
tree8cb806552693d0f929d8b90d7597ea6836696445 /test/CodeGenCXX/reference-cast.cpp
parentaf0f4d0b2e38c810effc8b024ad2fb6604eec5d3 (diff)
Fix r137086 to actually work properly in general. PR10650.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/reference-cast.cpp')
-rw-r--r--test/CodeGenCXX/reference-cast.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/reference-cast.cpp b/test/CodeGenCXX/reference-cast.cpp
index 549434e941..1d08b2b2e4 100644
--- a/test/CodeGenCXX/reference-cast.cpp
+++ b/test/CodeGenCXX/reference-cast.cpp
@@ -181,3 +181,14 @@ unsigned pr10592(const int &v) {
// CHECK-NEXT: ret i32 [[VVAL_I]]
return static_cast<const unsigned &>(v);
}
+
+namespace PR10650 {
+ struct Helper {
+ unsigned long long id();
+ };
+ unsigned long long test(Helper *obj) {
+ return static_cast<const unsigned long long&>(obj->id());
+ }
+ // CHECK: define i64 @_ZN7PR106504testEPNS_6HelperE
+ // CHECK: store i64
+}