mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-18 07:30:48 +00:00
Test multiplying two long long ints.
When using clang with -ftrapv or -sanitize=integer the tests would pass but linking would fail with "undefined reference to __mulodi4". Explicitly test for this before enabling -trapv.
This commit is contained in:
parent
a1cc637e7e
commit
a8fc0f42e1
8
aclocal.m4
vendored
8
aclocal.m4
vendored
@ -1,5 +1,3 @@
|
|||||||
dnl $Id: aclocal.m4,v 1.13 2014/01/22 10:30:12 djm Exp $
|
|
||||||
dnl
|
|
||||||
dnl OpenSSH-specific autoconf macros
|
dnl OpenSSH-specific autoconf macros
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
@ -59,7 +57,8 @@ int main(int argc, char **argv) {
|
|||||||
float l = i * 2.1;
|
float l = i * 2.1;
|
||||||
double m = l / 0.5;
|
double m = l / 0.5;
|
||||||
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
|
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
|
||||||
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
|
long long int p = n * o;
|
||||||
|
printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
]])],
|
]])],
|
||||||
@ -96,7 +95,8 @@ int main(int argc, char **argv) {
|
|||||||
float l = i * 2.1;
|
float l = i * 2.1;
|
||||||
double m = l / 0.5;
|
double m = l / 0.5;
|
||||||
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
|
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
|
||||||
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
|
long long p = n * o;
|
||||||
|
printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
]])],
|
]])],
|
||||||
|
Loading…
Reference in New Issue
Block a user