Try to restore some clang test headers lost in r360291

I'm not sure why 'git llvm revert' removed them.

llvm-svn: 360297
This commit is contained in:
Reid Kleckner 2019-05-08 22:30:46 +00:00
parent 902b3ecdad
commit 44dd05c31b
10 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#pragma once
double sqrt(double);
double pow(double, double);
double modf(double, double*);

View File

@ -0,0 +1,3 @@
#pragma once
#define complex _Complex

View File

@ -0,0 +1,10 @@
#pragma once
namespace std
{
struct __numeric_limits_base
{};
template<typename _Tp>
struct numeric_limits : public __numeric_limits_base
{};
}

View File

@ -0,0 +1,5 @@
#pragma once
double sqrt(double);
double pow(double, double);
double modf(double, double*);

View File

@ -0,0 +1,8 @@
#ifndef SETJMP_H
#define SETJMP_H
typedef struct {
int x[42];
} jmp_buf;
#endif

View File

@ -0,0 +1,19 @@
#ifndef STDINT_H
#define STDINT_H
#ifdef __INT32_TYPE__
typedef unsigned __INT32_TYPE__ uint32_t;
#endif
#ifdef __INT64_TYPE__
typedef unsigned __INT64_TYPE__ uint64_t;
#endif
#ifdef __INTPTR_TYPE__
typedef __INTPTR_TYPE__ intptr_t;
typedef unsigned __INTPTR_TYPE__ uintptr_t;
#else
#error Every target should have __INTPTR_TYPE__
#endif
#endif /* STDINT_H */

View File

@ -0,0 +1,2 @@
#pragma once
typedef __SIZE_TYPE__ size_t;

View File

@ -0,0 +1,6 @@
#ifndef SYSFLOAT_H
#define SYSFLOAT_H
#define FLT_HAS_SUBNORM 1
#endif /* SYSFLOAT_H */

View File

@ -0,0 +1 @@
// math.h

View File

@ -0,0 +1,4 @@
#ifndef SYS_TGMATH_H
#define SYS_TGMATH_H
#endif /* SYS_TGMATH_H */