summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/trunctfdf.c
blob: 29d6ed0dc9a9a2be3600b557a6b41a88c83a8a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Sparc w/128-bit long double bombed on this because even though
   the trunctfdf libcall passed the long double by reference, the
   libcall was still marked as LCT_CONST instead of LCT_PURE.  */

double *copy(long double *first, long double *last, double *result)
{
	int n;
	for (n = last - first; n > 0; --n) {
		*result = *first;
		++first;
		++result;
	}
	return result;
}