[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / cli-macro.c
blobbae8cc3ff0e757c6873c17571fd3a39bf7d4df24
1 // Test this without pch.
2 // RUN: %clang_cc1 -Wunused-macros -Dunused=1 -fsyntax-only -verify %s
4 // Test with pch.
5 // RUN: %clang_cc1 -Wunused-macros -emit-pch -o %t %s
6 // RUN: %clang_cc1 -Wunused-macros -Dunused=1 -include-pch %t -fsyntax-only -verify %s
8 // expected-no-diagnostics
10 // -Dunused=1 is intentionally not set for the pch.
11 // There still should be no unused warning for a macro from the command line.