brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 9aefa0f Raw
21 lines · c
1// RUN: %clang_cc1 -mfunction-return=keep -triple x86_64-linux-gnu %s2// RUN: %clang_cc1 -mfunction-return=thunk-extern -triple x86_64-linux-gnu %s3 4// RUN: not %clang_cc1 -mfunction-return=thunk -triple x86_64-linux-gnu %s 2>&1 \5// RUN:   | FileCheck --check-prefix=CHECK-THUNK %s6// RUN: not %clang_cc1 -mfunction-return=thunk-inline -triple x86_64-linux-gnu %s 2>&1 \7// RUN:   | FileCheck --check-prefix=CHECK-INLINE %s8// RUN: not %clang_cc1 -mfunction-return=invalid -triple x86_64-linux-gnu %s 2>&1 \9// RUN:   | FileCheck --check-prefix=CHECK-INVALID %s10// RUN: not %clang_cc1 -mfunction-return=thunk-extern -triple s390x-linux-gnu %s 2>&1 \11// RUN:   | FileCheck --check-prefix=CHECK-TARGET %s12// RUN: not %clang_cc1 -mfunction-return=thunk-extern -mcmodel=large \13// RUN:   -triple x86_64-linux-gnu %s 2>&1 \14// RUN:   | FileCheck --check-prefix=CHECK-LARGE %s15 16// CHECK-THUNK: error: invalid value 'thunk' in '-mfunction-return=thunk'17// CHECK-INLINE: error: invalid value 'thunk-inline' in '-mfunction-return=thunk-inline'18// CHECK-INVALID: error: invalid value 'invalid' in '-mfunction-return=invalid'19// CHECK-TARGET: error: invalid argument '-mfunction-return=' not allowed with 's390x-unknown-linux-gnu'20// CHECK-LARGE: error: invalid argument '-mfunction-return=thunk-extern' not allowed with '-mcmodel=large'21