1 // Test this without pch. 2 // RUN: %clang_cc1 -Wunused-macros -Dunused=1 -fsyntax-only -verify %s 3 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 7 8 // expected-no-diagnostics 9 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