Initial version.
authorChandra Chavva <cchavva@gcc.gnu.org>
Tue, 2 Jan 2001 16:37:39 +0000 (11:37 -0500)
committerChandra Chavva <cchavva@gcc.gnu.org>
Tue, 2 Jan 2001 16:37:39 +0000 (11:37 -0500)
From-SVN: r38628

gcc/testsuite/gcc.c-torture/execute/20001227-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/20001227-1.c b/gcc/testsuite/gcc.c-torture/execute/20001227-1.c
new file mode 100644 (file)
index 0000000..a5cb3ee
--- /dev/null
@@ -0,0 +1,32 @@
+typedef struct {
+  char y;
+  char x[32];
+} X;
+
+int z (void)
+{
+  X xxx;
+  xxx.x[0] =
+  xxx.x[31] = '0';
+  xxx.y = 0xf;
+  return f (xxx, xxx);
+}
+
+int main (void)
+{
+  int val;
+
+  val = z ();
+  if (val != 0x60)
+    abort ();
+  exit (0);
+}
+
+int f(X x, X y)
+{
+  if (x.y != y.y)
+    return 'F';
+
+  return x.x[0] + y.x[0];
+}
+