brintos

brintos / llvm-project-archived public Read only

0
0
Text · 438 B · 15e8503 Raw
14 lines · c
1// Test this without pch.2// RUN: %clang_cc1 -include %S/Inputs/pragma-once.h -fsyntax-only -verify %s3 4// Test with pch.5// RUN: %clang_cc1 -emit-pch -o %t %S/Inputs/pragma-once.h6// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s7 8// expected-no-diagnostics9 10// Including "pragma-once.h" twice, to verify the 'once' aspect is honored.11#include "Inputs/pragma-once.h"12#include "Inputs/pragma-once.h"13int foo(void) { return 0; }14