[31/77] Use scalar_int_mode for move2add
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / ns15.C
blob7768f698e3779b43b2f024bdbda66d7054e95456
1 // { dg-do assemble }
2 // { dg-xfail-if "" { xstormy16-*-* } }
4 #include <stdio.h>
5 #include <stdlib.h>
7 #define MAX 256
8 #define MAXSTATE 1000000
10 struct R {
11   int count;
12   int state1;
13   int state2;
16 int cmp_d(const R* a, const R* b) {
17   return a->count > b->count;
20 namespace CXX {
21   template<class T, long i1, long i2>
22     inline void qsort (T b[i1][i2], int (*cmp)(const T*, const T*)) {
23     ::qsort ((void*)b, i1*i2, sizeof(T), (int (*)(const void *, const void *))cmp);
24   }
27 using namespace CXX;
29 void sort_machine() {
30   struct R d[MAX][MAX];
31   qsort<R,MAX> (d, cmp_d);