Add another test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72450 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/references.cpp b/test/CodeGenCXX/references.cpp
index 97fc15e..aee3952 100644
--- a/test/CodeGenCXX/references.cpp
+++ b/test/CodeGenCXX/references.cpp
@@ -17,7 +17,7 @@
// Test reference binding.
-struct C {};
+struct C { int a; };
void f(const bool&);
void f(const int&);
@@ -29,6 +29,7 @@
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 @@
f(c);
f(aggregate_return());
+ aggregate_reference_return().a = 10;
}