[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / compilation_database_multiarch.c
blob1540a8d29ec5cfb1c40a80971fbc0e8ccdb774b8
1 // REQUIRES: system-darwin
3 // RUN: rm -rf %t && mkdir -p %t
4 // RUN: %clang -fdriver-only -o %t/out %s -mtargetos=macos12 -arch arm64 -arch x86_64 -MJ %t/compilation_database.json
6 // Let's run that again and verify we're not accumulating redundant entries in the same file.
7 //
8 // RUN: %clang -fdriver-only -o %t/out %s -mtargetos=macos12 -arch arm64 -arch x86_64 -MJ %t/compilation_database.json
9 // RUN: echo EOF >> %t/compilation_database.json
11 // RUN: FileCheck --input-file=%t/compilation_database.json %s
13 // CHECK-DAG: { "directory": "{{.*}}", "file": "{{.*}}", "output": "[[OUTPUT_X86_64:.*]]", "arguments": [{{.*}}, "-o", "[[OUTPUT_X86_64]]", {{.*}} "--target=x86_64-apple-macosx12.0.0"]},
14 // CHECK-DAG: { "directory": "{{.*}}", "file": "{{.*}}", "output": "[[OUTPUT_ARM64:.*]]", "arguments": [{{.*}}, "-o", "[[OUTPUT_ARM64]]", {{.*}} "--target=arm64-apple-macosx12.0.0"]},
15 // CHECK: EOF