aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}