[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / fsplit-machine-functions2.c
blob1b81be084eff9320f8e2a2b6cb58660bc93d959e
1 // Test -fsplit-machine-functions option pass-through with lto
2 // RUN: %clang -### -target x86_64-unknown-linux -flto -fsplit-machine-functions %s 2>&1 | FileCheck %s -check-prefix=CHECK-PASS
4 // Test no pass-through to ld without lto
5 // RUN: %clang -### -target x86_64-unknown-linux -fsplit-machine-functions %s 2>&1 | FileCheck %s -check-prefix=CHECK-NOPASS
7 // Test the mix of -fsplit-machine-functions and -fno-split-machine-functions
8 // RUN: %clang -### -target x86_64-unknown-linux -flto -fsplit-machine-functions -fno-split-machine-functions %s 2>&1 | FileCheck %s -check-prefix=CHECK-NOPASS
9 // RUN: %clang -### -target x86_64-unknown-linux -flto -fno-split-machine-functions -fsplit-machine-functions %s 2>&1 | FileCheck %s -check-prefix=CHECK-PASS
11 // CHECK-PASS: "-plugin-opt=-split-machine-functions"
12 // CHECK-NOPASS-NOT: "-plugin-opt=-split-machine-functions"