From 27fa2364b05ab26138c2ecf0eac1937b7fc6c037 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 13 Dec 2012 04:17:14 +0000 Subject: 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 --- test/Misc/freebsd-arm-size_t.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Misc/freebsd-arm-size_t.c (limited to 'test/Misc') 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); + -- cgit v1.2.3-18-g5258