| 1 |
// RUN: %clang -### --target=x86_64 -fpartition-static-data-sections %s 2>&1 | FileCheck %s --check-prefixes=OPT |
| 2 |
// RUN: %clang -### --target=aarch64 -fpartition-static-data-sections %s 2>&1 | FileCheck %s --check-prefixes=OPT |
| 3 |
|
| 4 |
// RUN: not %clang -### --target=arm -fpartition-static-data-sections %s 2>&1 | FileCheck %s --check-prefixes=ERR |
| 5 |
|
| 6 |
// RUN: %clang -### --target=x86_64 -fpartition-static-data-sections -fno-partition-static-data-sections %s 2>&1 | FileCheck %s --implicit-check-not="-fpartition-static-data-sections" |
| 7 |
|
| 8 |
// RUN: %clang -### --target=x86_64-linux -flto -fpartition-static-data-sections %s 2>&1 | FileCheck %s --check-prefix=LTO |
| 9 |
// RUN: %clang -### --target=x86_64-linux -flto -fpartition-static-data-sections -fno-partition-static-data-sections %s 2>&1 | FileCheck %s --implicit-check-not="-plugin-opt=-fpartition-static-data-sections" |
| 10 |
|
| 11 |
// OPT: "-fpartition-static-data-sections" |
| 12 |
// OPT: "-mllvm" "-memprof-annotate-static-data-prefix" |
| 13 |
|
| 14 |
// ERR: error: unsupported option '-fpartition-static-data-sections' for target |
| 15 |
|
| 16 |
// LTO: "-plugin-opt=-partition-static-data-sections" |