Skip to content

Commit

Permalink
Tighten up a modules test
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D144188
  • Loading branch information
pogo59 committed Feb 17, 2023
1 parent 87a0479 commit 17a90f1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clang/test/CXX/module/basic/basic.def.odr/p4.cppm
Expand Up @@ -2,7 +2,7 @@
// RUN: mkdir %t
// RUN: split-file %s %t
//
// RUN: %clang_cc1 -std=c++20 %t/Module.cppm -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %t/Module.cppm --implicit-check-not unused_inline --implicit-check-not unused_stastic_global_module
// RUN: %clang_cc1 -std=c++20 %t/Module.cppm -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %t/Module.cppm --implicit-check-not unused
//
// RUN: %clang_cc1 -std=c++20 %t/Module.cppm -triple %itanium_abi_triple -emit-module-interface -o %t/Module.pcm
// RUN: %clang_cc1 -std=c++20 %t/module.cpp -triple %itanium_abi_triple -fmodule-file=%t/Module.pcm -emit-llvm -o - | FileCheck %t/module.cpp --implicit-check-not=unused --implicit-check-not=global_module
Expand Down Expand Up @@ -33,8 +33,6 @@
// CHECK-DAG: @_ZL24const_var_module_linkage = internal
//
// CHECK-DAG: @_ZW6Module25unused_var_module_linkage = {{(dso_local )?}}global i32 4
// CHECK-NOT: @_ZW6Module32unused_static_var_module_linkage =
// CHECK-NOT: @_ZW6Module31unused_const_var_module_linkage =

module;

Expand Down Expand Up @@ -85,7 +83,6 @@ export {
}
}

// CHECK-NOT: define {{(dso_local )?}}void {{.*}}@_ZW6Module28unused_static_module_linkagev
static void unused_static_module_linkage() {}

static void used_static_module_linkage() {}
Expand Down

0 comments on commit 17a90f1

Please sign in to comment.