PR tree-optimization/38405
* gcc.dg/torture/pr38405.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142538
138bc75d-0d04-0410-961f-
82ee72b054a4
+2008-12-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR tree-optimization/38405
+ * gcc.dg/torture/pr38405.c: New.
+
2008-12-07 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/aggr10.adb: New test.
--- /dev/null
+/* { dg-do run } */
+
+extern void abort ();
+extern int printf (char *__format, ...);
+
+struct vpiBinaryConst {
+ int signed_flag :1;
+ int sized_flag :1;
+};
+
+int binary_get(int code, struct vpiBinaryConst *rfp)
+{
+ switch (code) {
+ case 1:
+ return rfp->signed_flag ? 1 : 0;
+ default:
+ printf("error: %d not supported\n", code);
+ return code;
+ }
+}
+
+int main(void)
+{
+ struct vpiBinaryConst x={1,0};
+ int y=binary_get(1, &x);
+ if (y!=1)
+ abort ();
+ return 0;
+}