Patchwork [C++,testcase] PR 43663

login
register
mail settings
Submitter Paolo Carlini
Date Oct. 11, 2012, 2:36 a.m.
Message ID <507630B1.1060402@oracle.com>
Download mbox | patch
Permalink /patch/190781/
State New
Headers show

Comments

Paolo Carlini - Oct. 11, 2012, 2:36 a.m.
Hi,

I'm committing the testcase and closing the PR as fixed. Tested 
x86_64-linux.

Thanks,
Paolo.

/////////////////////////////
2012-10-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/43663
	* g++.dg/init/bitfield3.C: New.

Patch

Index: g++.dg/init/bitfield3.C
===================================================================
--- g++.dg/init/bitfield3.C	(revision 0)
+++ g++.dg/init/bitfield3.C	(working copy)
@@ -0,0 +1,11 @@ 
+// PR c++/43663
+
+struct S
+{
+  S(): i(0) {}
+  int i : 3;
+};
+
+S s;
+
+const int& cr(s.i);