[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / PCH / rdar8852495.c
blob2d49e001b05158c529f18b5b3eacc255ff552fef
1 // Test this without pch.
2 // RUN: %clang_cc1 %s -include %s -verify -fsyntax-only -Wno-sign-compare -Wtautological-compare
4 // Test with pch.
5 // RUN: %clang_cc1 %s -emit-pch -o %t -Wsign-compare -Wtautological-compare
6 // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only -Wno-sign-compare -Wtautological-compare
8 // This tests that diagnostic mappings from PCH are propagated for #pragma
9 // diagnostics but not for command-line flags.
11 #ifndef HEADER
12 #define HEADER
14 #pragma clang diagnostic ignored "-Wtautological-compare"
16 #else
18 int f() {
19 int b = b==b;
20 unsigned x;
21 signed y;
22 return x == y;
25 #endif