OSDN Git Service

Initial version.
authorcchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Jan 2001 16:37:39 +0000 (16:37 +0000)
committercchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Jan 2001 16:37:39 +0000 (16:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38628 138bc75d-0d04-0410-961f-82ee72b054a4

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];
+}
+