~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to misc/check_obj.c

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include "include.h"
 
3
#define CHECK(a,b) \
 
4
do{ i++; if ((void *) a != (void *) b) printf("differed %d\n",i);}while(0)
 
5
 
 
6
main()
 
7
{object x;
 
8
 int i=0;
 
9
CHECK(&x->s.s_self,&x->ust.ust_self);
 
10
CHECK(&x->s.s_fillp,&x->ust.ust_fillp);
 
11
CHECK(&x->v.v_fillp,&x->ust.ust_fillp);
 
12
CHECK(&x->v.v_dim,&x->ust.ust_dim);
 
13
CHECK(&x->cfn.,&x->ust.ust_dim); 
 
14
}