aboutsummaryrefslogtreecommitdiff
path: root/test/Misc
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-12-13 04:17:14 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-12-13 04:17:14 +0000
commit27fa2364b05ab26138c2ecf0eac1937b7fc6c037 (patch)
tree0939d74d8132925f4748d662e6e171d5771255af /test/Misc
parente14999e768fe55f620719fc4fbc361759e990e80 (diff)
Initial support for FreeBSD on ARM.
Patch by Andrew Turner. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Misc')
-rw-r--r--test/Misc/freebsd-arm-size_t.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Misc/freebsd-arm-size_t.c b/test/Misc/freebsd-arm-size_t.c
new file mode 100644
index 0000000000..ba7bfecaed
--- /dev/null
+++ b/test/Misc/freebsd-arm-size_t.c
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -triple arm-unknown-freebsd10.0 -verify %s
+// expected-no-diagnostics
+
+/* Define a size_t as expected for FreeBSD ARM */
+typedef unsigned int size_t;
+
+/* Declare a builtin function that uses size_t */
+void *malloc(size_t);
+