From 68ea78a093271301dc6396fc683644d8e13a90dd Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Wed, 27 May 2009 01:46:48 +0000 Subject: [PATCH] Add another test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72450 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/references.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.40.0