[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Frontend / multiple-actions.c
blob284e8f0467bfe141ac3411b5f099716e7a9020f2
1 // RUN: not %clang_cc1 -S -emit-llvm -main-file-name %s 2>&1 | FileCheck %s --check-prefix=ERR1 --implicit-check-not=error:
2 // ERR1: error: '-S' action ignored; '-emit-llvm' action specified previously
4 // RUN: not %clang_cc1 -main-file-name %s -emit-llvm-only -emit-llvm -S 2>&1 | FileCheck %s --check-prefix=ERR2 --implicit-check-not=error:
5 // ERR2: error: '-emit-llvm-only' action ignored; '-S' action specified previously
7 // RUN: %clang_cc1 -S -main-file-name %s -emit-llvm -o /dev/null