1 // Test this without pch.
2 // RUN: %clang_cc1 %s -include %s -verify -fsyntax-only
3 
4 // Test with pch.
5 // RUN: %clang_cc1 %s -emit-pch -o %t
6 // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only
7 
8 // expected-no-diagnostics
9 
10 #ifndef HEADER
11 #define HEADER
12 
13 #pragma clang diagnostic ignored "-Wtautological-compare"
14 
15 #else
16 
17 void f() {
18   int a = 0;
19   int b = a==a;
20 }
21 
22 #endif
23