Argyrios Kyrtzidis | f41d3be | 2010-11-05 22:10:18 +0000 | [diff] [blame] | 1 | // 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 | |
| 8 | #ifndef HEADER |
| 9 | #define HEADER |
| 10 | |
| 11 | #pragma clang diagnostic ignored "-Wtautological-compare" |
| 12 | |
| 13 | #else |
| 14 | |
| 15 | void f() { |
Chandler Carruth | a7689ef | 2011-03-27 09:46:56 +0000 | [diff] [blame] | 16 | int a = 0; |
| 17 | int b = a==a; |
Argyrios Kyrtzidis | f41d3be | 2010-11-05 22:10:18 +0000 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | #endif |