llvm-project/clang/test/Driver/debug-options-aranges.c
Qiongsi Wu b924c8c71d [clang][LTO] Remove the use of -- for arange option
https://reviews.llvm.org/D134668 removed all `--` (double dashes) when using `plugin-opt` to pass linker options and replaced them with `-`. https://reviews.llvm.org/D133092 was committed later but introduced an instance of `--`. This patch replaces the `--` with `-`.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D135400
2022-10-06 20:27:55 -04:00

7 lines
325 B
C

// REQUIRES: lld
/// Check that the linker plugin will get -generate-arange-section.
// RUN: %clang -### -g --target=x86_64-linux -flto -gdwarf-aranges %s 2>&1 | FileCheck %s
// RUN: %clang -### -g --target=x86_64-linux -flto=thin -gdwarf-aranges %s 2>&1 | FileCheck %s
// CHECK: "-plugin-opt=-generate-arange-section"