* Check that llvm-bolt uses reserved space in a binary for allocating
* new sections.
*/
* Check that llvm-bolt detects a condition when the reserved space is
* not enough for allocating new sections.
*/
// RUN: FileCheck %s --check-prefix=CHECK-TINY
#ifdef TINY
#define RSIZE "1"
#else
#define RSIZE "8192 * 1024"
#endif
asm(".pushsection .text \n\
.globl __bolt_reserved_start \n\
.type __bolt_reserved_start, @object \n\
__bolt_reserved_start: \n\
.space " RSIZE " \n\
.globl __bolt_reserved_end \n\
__bolt_reserved_end: \n\
.popsection");
int main() { return 0; }