blob: 601c940cee9b3b33be86fb249a4adf664770072b [file] [log] [blame]
Argyrios Kyrtzidisf41d3be2010-11-05 22:10:18 +00001// 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
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00008// expected-no-diagnostics
9
Argyrios Kyrtzidisf41d3be2010-11-05 22:10:18 +000010#ifndef HEADER
11#define HEADER
12
13#pragma clang diagnostic ignored "-Wtautological-compare"
14
15#else
16
17void f() {
Chandler Carrutha7689ef2011-03-27 09:46:56 +000018 int a = 0;
19 int b = a==a;
Argyrios Kyrtzidisf41d3be2010-11-05 22:10:18 +000020}
21
22#endif