[cfe-commits] r72450 - /cfe/trunk/test/CodeGenCXX/references.cpp
Anders Carlsson
andersca at mac.com
Tue May 26 18:46:48 PDT 2009
Author: andersca
Date: Tue May 26 20:46:48 2009
New Revision: 72450
URL: http://llvm.org/viewvc/llvm-project?rev=72450&view=rev
Log:
Add another test.
Modified:
cfe/trunk/test/CodeGenCXX/references.cpp
Modified: cfe/trunk/test/CodeGenCXX/references.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/references.cpp?rev=72450&r1=72449&r2=72450&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/references.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/references.cpp Tue May 26 20:46:48 2009
@@ -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;
}
More information about the cfe-commits
mailing list