<commit_before>// Test __llvm_profile_get_filename when the on-line merging mode is enabled.
//
// RUN: %clang_pgogen -dynamiclib -o %t.dso %p/Inputs/instrprof-get-filename-dso.c
// RUN: %clang_pgogen -o %t %s %t.dso
// RUN: env LLVM_PROFILE_FILE="%t-%m.profraw" %run %t

#include <string.h>

const char *__llvm_profile_get_filename(void);
extern const char *get_filename_from_DSO(void);<commit_msg>[profile] Use -fPIC -shared in a test instead of -dynamiclib<commit_after>// Test __llvm_profile_get_filename when the on-line merging mode is enabled.
//
// RUN: %clang_pgogen -fPIC -shared -o %t.dso %p/../Inputs/instrprof-get-filename-dso.c
// RUN: %clang_pgogen -o %t %s %t.dso
// RUN: env LLVM_PROFILE_FILE="%t-%m.profraw" %run %t

#include <string.h>

const char *__llvm_profile_get_filename(void);
extern const char *get_filename_from_DSO(void);
{'fraction_non_alphanumeric': 0.14470588235294118, 'fraction_numerical': 0.0, 'mean_word_length': 4.598684210526316, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3745867', 'n_tokens_mistral': 338, 'n_tokens_neox': 328, 'n_words': 81}