2011-02-20 13:06:31 +00: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-12-02 13:20:44 +00:00
|
|
|
// expected-no-diagnostics
|
|
|
|
|
2011-02-20 13:06:31 +00:00
|
|
|
#ifndef HEADER
|
|
|
|
#define HEADER
|
|
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wtautological-compare"
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
void f() {
|
2011-05-02 19:39:53 +00:00
|
|
|
int a = 0;
|
|
|
|
int b = a==a;
|
2011-02-20 13:06:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|