<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------

// RUN: %cling %s "globalinit(\"%s\")" | FileCheck %s

#include "cling/Interpreter/Interpreter.h"

void globalinit(const std::string& location) {
  gCling->loadFile(location + ".h", false); // CHECK: A::S()
  gCling->loadFile(location + "2.h", false); // CHECK: B::S()
}
// CHECK: B::~S()
// CHECK: A::~S()<commit_msg>Windows: Fix test failure because path has backslashes.<commit_after>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------

// RUN: %cling %s -I%p | FileCheck %s

#include "cling/Interpreter/Interpreter.h"

void globalinit() {
  gCling->loadFile("globalinit.C.h", false); // CHECK: A::S()
  gCling->loadFile("globalinit.C2.h", false); // CHECK: B::S()
}
// CHECK: B::~S()
// CHECK: A::~S()
{'fraction_non_alphanumeric': 0.3521414004078858, 'fraction_numerical': 0.0013596193065941536, 'mean_word_length': 1.6099290780141844, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2355282', 'n_tokens_mistral': 394, 'n_tokens_neox': 398, 'n_words': 124}