diff options
Diffstat (limited to 'test/CodeGenCXX/reference-init.cpp')
-rw-r--r-- | test/CodeGenCXX/reference-init.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGenCXX/reference-init.cpp b/test/CodeGenCXX/reference-init.cpp index 61ae2daffd..9469c84eb5 100644 --- a/test/CodeGenCXX/reference-init.cpp +++ b/test/CodeGenCXX/reference-init.cpp @@ -19,3 +19,6 @@ namespace PR5911 { struct Foo { int foo; }; Foo& ignoreSetMutex = *(new Foo); +// Binding to a bit-field that requires a temporary. +struct { int bitfield : 3; } s = { 3 }; +const int &s2 = s.bitfield; |