1 # Ensure that the permissions of the optimized binary file comply with the
4 # This test performs a logical AND operation on the results of the `stat -c %a
5 # %t.bolt` and `umask` commands (both results are displayed in octal), and
6 # checks whether the result is equal to 0.
9 RUN: %clang %cflags %p/Inputs/hello.c -o %t -Wl,-q
10 RUN: llvm-bolt %t -o %t.bolt
11 RUN: echo $(( 8#$(stat -c %a %t.bolt) & 8#$(umask) )) | FileCheck %s