2010-11-06 06:10:18 +08:00
|
|
|
// Test this without pch.
|
|
|
|
// RUN: %clang_cc1 %s -include %s -verify -fsyntax-only
|
|
|
|
|
|
|
|
// Test with pch.
|
|
|
|
// RUN: %clang_cc1 %s -emit-pch -o %t
|
|
|
|
// RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only
|
|
|
|
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
|
|
|
|
2010-11-06 06:10:18 +08:00
|
|
|
#ifndef HEADER
|
|
|
|
#define HEADER
|
|
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wtautological-compare"
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
void f() {
|
2011-03-27 17:46:56 +08:00
|
|
|
int a = 0;
|
|
|
|
int b = a==a;
|
2010-11-06 06:10:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|