1*67e74705SXin Li // RUN: %clang_cc1 %s -triple thumbv7-apple-ios -target-abi aapcs -verify -fsyntax-only 2*67e74705SXin Li // RUN: %clang_cc1 %s -triple thumbv7m-apple-macho -target-abi aapcs -verify -fsyntax-only 3*67e74705SXin Li // expected-no-diagnostics 4*67e74705SXin Li 5*67e74705SXin Li // ARM's AAPCS normally has size_t defined as unsigned int, but on Darwin 6*67e74705SXin Li // some embedded targets use AAPCS with the iOS header files, which define 7*67e74705SXin Li // size_t as unsigned long. Make sure that works. 8*67e74705SXin Li typedef unsigned long size_t; 9*67e74705SXin Li void* malloc(size_t); operator new(size_t size)10*67e74705SXin Livoid* operator new(size_t size) 11*67e74705SXin Li { 12*67e74705SXin Li return (malloc(size)); 13*67e74705SXin Li } 14