X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fcrash16.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fcrash16.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=d8a4e152a8327a8676481d89bb93f7cabb30d9e5;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash16.C b/gcc/testsuite/g++.old-deja/g++.pt/crash16.C deleted file mode 100644 index d8a4e152..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/crash16.C +++ /dev/null @@ -1,30 +0,0 @@ -// Build don't link: -// Special g++ Options: -// excess errors test - XFAIL xstormy16-*-* - -extern "C" void qsort(void *base, __SIZE_TYPE__ nmemb, __SIZE_TYPE__ size, - int (*compar)(const void *, const void *)); - -struct R { - int count; - int state1; - int state2; -}; - -int cmp_d(const R* a, const R* b) { - return a->count > b->count; -} - -namespace CXX { - template - inline void qsort (T b[i1][i2], int (*cmp)(const T*, const T*)) { - ::qsort ((void*)b, i1*i2, sizeof(T), (int (*)(const void *, const void *))cmp); - } -} - -using namespace CXX; - -void sort_machine() { - struct R d[256][256]; - qsort (d, cmp_d); -}