[cfe-commits] r164683 - in /cfe/trunk/test/Headers: Inputs/ Inputs/include/ Inputs/include/stdint.h unwind.c
Logan Chien
tzuhsiang.chien at gmail.com
Wed Sep 26 02:40:38 PDT 2012
Author: logan
Date: Wed Sep 26 04:40:37 2012
New Revision: 164683
URL: http://llvm.org/viewvc/llvm-project?rev=164683&view=rev
Log:
Fix build failure and enhance the testcase for unwind.h.
Added:
cfe/trunk/test/Headers/Inputs/
cfe/trunk/test/Headers/Inputs/include/
cfe/trunk/test/Headers/Inputs/include/stdint.h
Modified:
cfe/trunk/test/Headers/unwind.c
Added: cfe/trunk/test/Headers/Inputs/include/stdint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/Inputs/include/stdint.h?rev=164683&view=auto
==============================================================================
--- cfe/trunk/test/Headers/Inputs/include/stdint.h (added)
+++ cfe/trunk/test/Headers/Inputs/include/stdint.h Wed Sep 26 04:40:37 2012
@@ -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 */
Modified: cfe/trunk/test/Headers/unwind.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/unwind.c?rev=164683&r1=164682&r2=164683&view=diff
==============================================================================
--- cfe/trunk/test/Headers/unwind.c (original)
+++ cfe/trunk/test/Headers/unwind.c Wed Sep 26 04:40:37 2012
@@ -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"
More information about the cfe-commits
mailing list