1 // Test this without pch. 2 // RUN: %clang_cc1 -include %S/Inputs/pragma-once.h -fsyntax-only -verify %s 3 4 // Test with pch. 5 // RUN: %clang_cc1 -emit-pch -o %t %S/Inputs/pragma-once.h 6 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s 7 8 // expected-no-diagnostics 9 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" foo(void)13int foo(void) { return 0; } 14