blob: 1359a1dc15aa2c31cbc813fc59607d9b950659ad [file] [log] [blame]
Bob Wilson87b3a182013-06-18 05:36:04 +00001// RUN: %clang_cc1 %s -triple thumbv7-apple-ios -target-abi aapcs -verify -fsyntax-only
2// expected-no-diagnostics
3
4// ARM's AAPCS normally has size_t defined as unsigned int, but on Darwin
5// some embedded targets use AAPCS with the iOS header files, which define
6// size_t as unsigned long. Make sure that works.
7typedef unsigned long size_t;
8void* malloc(size_t);
9void* operator new(size_t size)
10{
11 return (malloc(size));
12}