<commit_before>// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - -std=c++11 %s 2>&1 | FileCheck %s -check-prefix=CHECKDEF -check-prefix=CHECK11
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - -std=c++11 -fvisibility hidden %s 2>&1 | FileCheck %s -check-prefix=CHECKHID -check-prefix=CHECK11
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - -std=c++14 %s 2>&1 | FileCheck %s -check-prefix=CHECKDEF -check-prefix=CHECK14
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - -std=c++14 -fvisibility hidden %s 2>&1 | FileCheck %s -check-prefix=CHECKHID -check-prefix=CHECK14

// PR22419: Implicit sized deallocation functions always have default visibility.
//   Generalized to all implicit allocation functions.


// CHECK14-DAG: %struct.A = type { i8 }
struct A { };

// CHECKDEF-DAG: define void @_Z3fooP1A(%struct.A* %is)
// CHECKHID-DAG: define hidden void @_Z3fooP1A(%struct.A* %is)
void foo(A* is) {

  // CHECK11-DAG: call noalias i8* @_Znwm(i64 1)
  // CHECK14-DAG: call noalias i8* @_Znwm(i64 1)
  is = new A();

  // CHECK11-DAG: call void @_ZdlPv(i8* %{{.+}})
  // CHECK14-DAG: call void @_ZdlPvm(i8* %{{.+}}, i64 1)
  delete is;
}
<commit_msg>Fix typo in test case.<commit_after>// RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-unknown -o - -std=c++11 %s 2>&1 | FileCheck %s -check-prefix=CHECKDEF -check-prefix=CHECK11
// RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-unknown-o - -std=c++11 -fvisibility hidden %s 2>&1 | FileCheck %s -check-prefix=CHECKHID -check-prefix=CHECK11
// RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-unknown -o - -std=c++14 %s 2>&1 | FileCheck %s -check-prefix=CHECKDEF -check-prefix=CHECK14
// RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-unknown -o - -std=c++14 -fvisibility hidden %s 2>&1 | FileCheck %s -check-prefix=CHECKHID -check-prefix=CHECK14

// PR22419: Implicit sized deallocation functions always have default visibility.
//   Generalized to all implicit allocation functions.


// CHECK14-DAG: %struct.A = type { i8 }
struct A { };

// CHECKDEF-DAG: define void @_Z3fooP1A(%struct.A* %is)
// CHECKHID-DAG: define hidden void @_Z3fooP1A(%struct.A* %is)
void foo(A* is) {

  // CHECK11-DAG: call noalias i8* @_Znwm(i64 1)
  // CHECK14-DAG: call noalias i8* @_Znwm(i64 1)
  is = new A();

  // CHECK11-DAG: call void @_ZdlPv(i8* %{{.+}})
  // CHECK14-DAG: call void @_ZdlPvm(i8* %{{.+}}, i64 1)
  delete is;
}

{'fraction_non_alphanumeric': 0.16927512355848434, 'fraction_numerical': 0.05683690280065898, 'mean_word_length': 3.716504854368932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6809450', 'n_tokens_mistral': 1062, 'n_tokens_neox': 973, 'n_words': 241}