diff options
author | Anders Carlsson <andersca@mac.com> | 2009-05-27 01:46:48 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-05-27 01:46:48 +0000 |
commit | ace7215dd4ab29876036830c7d155bdd8e1fa0ba (patch) | |
tree | 13de6d687dcb1a8f784a1fad14272f559954b8c4 /clang/test/CodeGenCXX/references.cpp | |
parent | 4ae70ff9a34727fd6d749d01f569efd22a7176f8 (diff) | |
download | bcm5719-llvm-ace7215dd4ab29876036830c7d155bdd8e1fa0ba.tar.gz bcm5719-llvm-ace7215dd4ab29876036830c7d155bdd8e1fa0ba.zip |
Add another test.
llvm-svn: 72450
Diffstat (limited to 'clang/test/CodeGenCXX/references.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/references.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/references.cpp b/clang/test/CodeGenCXX/references.cpp index 97fc15e0359..aee395251ea 100644 --- a/clang/test/CodeGenCXX/references.cpp +++ b/clang/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; } |