summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/references.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-27 01:46:48 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-27 01:46:48 +0000
commit68ea78a093271301dc6396fc683644d8e13a90dd (patch)
treec283518a05ebb77f97120642ad7722d379b01015 /test/CodeGenCXX/references.cpp
parent482656833a71b63f67f3e93ee8c2d45b3d351ca8 (diff)
Add another test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72450 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/references.cpp')
-rw-r--r--test/CodeGenCXX/references.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGenCXX/references.cpp b/test/CodeGenCXX/references.cpp
index 97fc15e035..aee395251e 100644
--- a/test/CodeGenCXX/references.cpp
+++ b/test/CodeGenCXX/references.cpp
@@ -17,7 +17,7 @@ void t3() {
// Test reference binding.
-struct C {};
+struct C { int a; };
void f(const bool&);
void f(const int&);
@@ -29,6 +29,7 @@ C aggregate_return();
bool& bool_reference_return();
int& int_reference_return();
_Complex int& complex_int_reference_return();
+C& aggregate_reference_return();
void test_bool() {
bool a = true;
@@ -68,5 +69,6 @@ void test_aggregate() {
f(c);
f(aggregate_return());
+ aggregate_reference_return().a = 10;
}