aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhil Blundell <pb@gcc.gnu.org>2001-03-20 10:49:38 +0000
committerPhil Blundell <pb@gcc.gnu.org>2001-03-20 10:49:38 +0000
commita44a935fe4878d4eb69c08f95de8a68f42f309eb (patch)
tree9ec40436114b196d40f772505605a16a557200d5 /gcc
parentbd2950d2086144980c2260ce678b8767259848e5 (diff)
downloadgcc-a44a935fe4878d4eb69c08f95de8a68f42f309eb.zip
gcc-a44a935fe4878d4eb69c08f95de8a68f42f309eb.tar.gz
gcc-a44a935fe4878d4eb69c08f95de8a68f42f309eb.tar.bz2
20010320-1.c: New test.
2001-03-20 Philip Blundell <philb@gnu.org> * gcc.c-torture/compile/20010320-1.c: New test. From-SVN: r40651
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20010320-1.c28
2 files changed, 33 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e3c4710..57583fe 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
@@ -126,7 +130,6 @@
* 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.
@@ -150,6 +153,7 @@
* 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
index 0000000..14686d6
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20010320-1.c
@@ -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))) ) ;
+ }
+}
+