Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / PCH / pragma-diag.c
blob8758442ecaa499cbcdc3575b2bfd5f9046382289
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 // expected-no-diagnostics
10 #ifndef HEADER
11 #define HEADER
13 #pragma clang diagnostic ignored "-Wtautological-compare"
15 #else
17 void f(void) {
18 int a = 0;
19 int b = a==a;
22 #endif