20010320-1.c: New test.
authorPhil Blundell <pb@gcc.gnu.org>
Tue, 20 Mar 2001 10:49:38 +0000 (10:49 +0000)
committerPhil Blundell <pb@gcc.gnu.org>
Tue, 20 Mar 2001 10:49:38 +0000 (10:49 +0000)
2001-03-20  Philip Blundell  <philb@gnu.org>

* gcc.c-torture/compile/20010320-1.c: New test.

From-SVN: r40651

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20010320-1.c [new file with mode: 0644]

index e3c4710ff40f291fa184ea5fde96cfc891df4c5b..57583fe4fc92a27e37fbab44b0ce1dfa5e4d447c 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-20  Philip Blundell  <philb@gnu.org>
+
+       * gcc.c-torture/compile/20010320-1.c: New test.
+
 2001-03-17  Richard Henderson  <rth@redhat.com>
 
        * g++.old-deja/g++.other/eh4.C: Add expected error text.
 
        * g++.old-deja/g++.other/using9.C: New test.
 
->>>>>>> 1.1111
 2001-02-28  Ovidiu Predescu  <ovidiu@cup.hp.com>
 
        * objc/execute/bycopy-3.m: Added new test from Nicola Pero.
        * g++.old-deja/g++.pt/overload15.C: New test to stress overloaded
        templatized constructors.
 
+>>>>>>> 1.1119
 2001-02-24  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 
        * gcc.c-torture/execute/20010224-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20010320-1.c b/gcc/testsuite/gcc.c-torture/compile/20010320-1.c
new file mode 100644 (file)
index 0000000..14686d6
--- /dev/null
@@ -0,0 +1,28 @@
+typedef struct sec { 
+const char *name;
+int id;
+int index;
+struct sec *next;
+unsigned int flags;
+unsigned int user_set_vma : 1;
+unsigned int reloc_done : 1;
+unsigned int linker_mark : 1;
+unsigned int gc_mark : 1;
+unsigned int segment_mark : 1;
+unsigned long long vma; } asection;
+static void pe_print_pdata (asection *section)
+{
+  unsigned long long i;
+  unsigned long long start = 0, stop = 0;
+  int onaline = (3*8) ;
+
+  for (i = start; i < stop; i += onaline)
+    {
+      if (i + (3*8)  > stop)
+       break;
+
+      f (((unsigned long) (((   i + section->vma  ) >> 32) & 0xffffffff)) , ((unsigned long) (((   i + section->vma  ) & 0xffffffff))) ) ;
+    }
+}
+