commit | 38d068e8f13a119b89a3b8b0f79f35cab1ffd09a | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Wed May 20 01:24:22 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Wed May 20 01:24:22 2009 +0000 |
tree | a2cbc5d81446fe5bbb28d0137f2fc8894388eece | |
parent | e04d1c77ae15a6e973e2fac7723f6c364884f58d [diff] [blame] |
Create a temporary if the lvalue is a bitfield. Reported by Eli. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72155 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/references.cpp b/test/CodeGenCXX/references.cpp index a1a6c0a..82b9ec7 100644 --- a/test/CodeGenCXX/references.cpp +++ b/test/CodeGenCXX/references.cpp
@@ -35,6 +35,9 @@ int a = 10; f(a); + struct { int bitfield : 3; } s = { 3 }; + f(s.bitfield) + f(10); }