1 // RUN: %clang -target x86_64-linux-unknown -### -fcrash-diagnostics-dir=mydumps -flto %s 2>&1 \
2 // RUN: | FileCheck %s --check-prefix=LTO-OPTION
4 // LTO-OPTION: "-plugin-opt=-crash-diagnostics-dir=mydumps"
6 // RUN: %clang -target x86_64-linux-unknown -### -flto %s 2>&1 | FileCheck %s --check-prefix=LTO-NOOPTION
7 // LTO-NOOPTION: "-cc1"
8 // LTO-NOOPTION-NOT: "-plugin-opt=-crash-diagnostics-dir=mydumps"