brintos

brintos / llvm-project-archived public Read only

0
0
Text · 379 B · 8758442 Raw
23 lines · c
1// Test this without pch.2// RUN: %clang_cc1 %s -include %s -verify -fsyntax-only3 4// Test with pch.5// RUN: %clang_cc1 %s -emit-pch -o %t6// RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only7 8// expected-no-diagnostics9 10#ifndef HEADER11#define HEADER12 13#pragma clang diagnostic ignored "-Wtautological-compare"14 15#else16 17void f(void) {18  int a = 0;19  int b = a==a;20}21 22#endif23