<commit_before>// Check that clang can use a PCH created from libclang.
// RUN: c-index-test -write-pch %t.h.pch %s -fmodules -fmodules-cache-path=%t.mcp
// RUN: %clang -fsyntax-only -include %t.h %s -Xclang -verify -fmodules -fmodules-cache-path=%t.mcp -Xclang -detailed-preprocessing-record

// expected-no-diagnostics

#ifndef HEADER
#define HEADER

struct S { int x; };

#else

void test(struct S *s) {
  s->x = 0;
}

#endif<commit_msg>[test] Add target to test/Index/pch-from-libclang.c.<commit_after>// Check that clang can use a PCH created from libclang.
// RUN: c-index-test -write-pch %t.h.pch %s -fmodules -fmodules-cache-path=%t.mcp -target x86_64-apple-darwin
// RUN: %clang -fsyntax-only -include %t.h %s -Xclang -verify -fmodules -fmodules-cache-path=%t.mcp -Xclang -detailed-preprocessing-record -target x86_64-apple-darwin

// expected-no-diagnostics

#ifndef HEADER
#define HEADER

struct S { int x; };

#else

void test(struct S *s) {
  s->x = 0;
}

#endif
{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.010256410256410256, 'mean_word_length': 3.416289592760181, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3721178', 'n_tokens_mistral': 400, 'n_tokens_neox': 388, 'n_words': 101}