brintos

brintos / llvm-project-archived public Read only

0
0
Text · 520 B · 3a6082a Raw
14 lines · cpp
1// RUN: %clang_cc1 %s -triple thumbv7-apple-ios -target-abi aapcs -verify -fsyntax-only2// RUN: %clang_cc1 %s -triple thumbv7m-apple-macho -target-abi aapcs -verify -fsyntax-only3// expected-no-diagnostics4 5// ARM's AAPCS normally has size_t defined as unsigned int, but on Darwin6// some embedded targets use AAPCS with the iOS header files, which define7// size_t as unsigned long.  Make sure that works.8typedef unsigned long size_t;9void* malloc(size_t);10void* operator new(size_t size)11{12  return (malloc(size));13}14