brintos

brintos / llvm-project-archived public Read only

0
0
Text · 417 B · bae8cc3 Raw
13 lines · c
1// Test this without pch.2// RUN: %clang_cc1 -Wunused-macros -Dunused=1 -fsyntax-only -verify %s3 4// Test with pch.5// RUN: %clang_cc1 -Wunused-macros -emit-pch -o %t %s6// RUN: %clang_cc1 -Wunused-macros -Dunused=1 -include-pch %t -fsyntax-only -verify %s7 8// expected-no-diagnostics9 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.12 13