1# REQUIRES: x86-registered-target 2 3## If a process spawns llvm-symbolizer, and wishes to feed it addresses one at a 4## time, llvm-symbolizer needs to flush its output after each input has been 5## processed or the parent process will not be able to read the output and may 6## deadlock. This test runs a script that simulates this situation for both a 7## a good and bad input. 8 9foo: 10 nop 11 12# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o -g 13# RUN: %python %p/Inputs/flush-output.py llvm-symbolizer %t.o \ 14# RUN: | FileCheck %s 15 16# CHECK: flush-output.s:10 17# CHECK: bad 18