X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2F920810-1.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2F920810-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=9565bfc1a2bb89fc1be5687693c495252e99dbd3;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/execute/920810-1.c b/gcc/testsuite/gcc.c-torture/execute/920810-1.c deleted file mode 100644 index 9565bfc1..00000000 --- a/gcc/testsuite/gcc.c-torture/execute/920810-1.c +++ /dev/null @@ -1,23 +0,0 @@ -#include -#include -#include - -typedef struct{void*super;int name;int size;}t; -t*f(t*clas,int size) -{ - t*child=(t*)malloc(size); - memcpy(child,clas,clas->size); - child->super=clas; - child->name=0; - child->size=size; - return child; -} -main() -{ - t foo,*bar; - memset(&foo,37,sizeof(t)); - foo.size=sizeof(t); - bar=f(&foo,sizeof(t)); - if(bar->super!=&foo||bar->name!=0||bar->size!=sizeof(t))abort(); - exit(0); -}