Read/write from/to PCH the diagnostic mappings that the user set so that e.g. #pragma...
[clang.git] / test / PCH / pragma-diag.c
blobc5171036400f35be84f6e1a6ab83a8e02f7d7301
1 // Test this without pch.
2 // RUN: %clang_cc1 %s -include %s -verify -fsyntax-only
4 // Test with pch.
5 // RUN: %clang_cc1 %s -emit-pch -o %t
6 // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only
8 #ifndef HEADER
9 #define HEADER
11 #pragma clang diagnostic ignored "-Wtautological-compare"
13 #else
15 void f() {
16 int b = b==b;
19 #endif