//
//===----------------------------------------------------------------------===//
-#include "src/__support/CPP/Functional.h"
+#include "src/__support/CPP/functional.h"
#include "src/__support/OSUtil/syscall.h"
#include "utils/UnitTest/Test.h"
// We only do a signature test here. Actual functionality tests are
// done by the unit tests of the syscall wrappers like mmap.
- using __llvm_libc::cpp::Function;
+ using __llvm_libc::cpp::function;
- Function<long(long)> f([](long n) { return __llvm_libc::syscall(n); });
- Function<long(long, long)> f1(
+ function<long(long)> f([](long n) { return __llvm_libc::syscall(n); });
+ function<long(long, long)> f1(
[](long n, long a1) { return __llvm_libc::syscall(n, a1); });
- Function<long(long, long, long)> f2(
+ function<long(long, long, long)> f2(
[](long n, long a1, long a2) { return __llvm_libc::syscall(n, a1, a2); });
- Function<long(long, long, long, long)> f3(
+ function<long(long, long, long, long)> f3(
[](long n, long a1, long a2, long a3) {
return __llvm_libc::syscall(n, a1, a2, a3);
});
- Function<long(long, long, long, long, long)> f4(
+ function<long(long, long, long, long, long)> f4(
[](long n, long a1, long a2, long a3, long a4) {
return __llvm_libc::syscall(n, a1, a2, a3, a4);
});
- Function<long(long, long, long, long, long, long)> f5(
+ function<long(long, long, long, long, long, long)> f5(
[](long n, long a1, long a2, long a3, long a4, long a5) {
return __llvm_libc::syscall(n, a1, a2, a3, a4, a5);
});
- Function<long(long, long, long, long, long, long, long)> f6(
+ function<long(long, long, long, long, long, long, long)> f6(
[](long n, long a1, long a2, long a3, long a4, long a5, long a6) {
return __llvm_libc::syscall(n, a1, a2, a3, a4, a5, a6);
});
- Function<long(long, void *)> not_long_type(
+ function<long(long, void *)> not_long_type(
[](long n, void *a1) { return __llvm_libc::syscall(n, a1); });
}