Fix build failure and enhance the testcase for unwind.h.
llvm-svn: 164683
This commit is contained in:
parent
776d7126b7
commit
35795cf9c1
|
@ -0,0 +1,14 @@
|
|||
#ifndef STDINT_H
|
||||
#define STDINT_H
|
||||
|
||||
#if defined(__arm__) || defined(__i386__) || defined(__mips__)
|
||||
typedef unsigned int uint32_t;
|
||||
typedef unsigned int uintptr_t;
|
||||
#elif defined(__x86_64__)
|
||||
typedef unsigned int uint32_t;
|
||||
typedef unsigned long uintptr_t;
|
||||
#else
|
||||
#error "Unknown target architecture"
|
||||
#endif
|
||||
|
||||
#endif /* STDINT_H */
|
|
@ -1,5 +1,19 @@
|
|||
// RUN: %clang -target arm-unknown-linux-gnueabi -ffreestanding -fsyntax-only %s
|
||||
// RUN: %clang -target i686-unknown-linux -ffreestanding -fsyntax-only %s
|
||||
// RUN: %clang -ffreestanding -fsyntax-only -x c++ %s
|
||||
// RUN: %clang -target arm-unknown-linux-gnueabi \
|
||||
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
|
||||
// RUN: %clang -target mips-unknown-linux \
|
||||
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
|
||||
// RUN: %clang -target i686-unknown-linux \
|
||||
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
|
||||
// RUN: %clang -target x86_64-unknown-linux \
|
||||
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only %s
|
||||
|
||||
// RUN: %clang -target arm-unknown-linux-gnueabi \
|
||||
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
|
||||
// RUN: %clang -target mips-unknown-linux \
|
||||
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
|
||||
// RUN: %clang -target i686-unknown-linux \
|
||||
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
|
||||
// RUN: %clang -target x86_64-unknown-linux \
|
||||
// RUN: -isystem %S/Inputs/include -ffreestanding -fsyntax-only -x c++ %s
|
||||
|
||||
#include "unwind.h"
|
||||
|
|
Loading…
Reference in New Issue