1 // Test that the static function only used in non-inline functions won't get emitted
7 // RUN: %clang_cc1 -std=c++20 %s -emit-reduced-module-interface -o %t/S.pcm
8 // RUN: llvm-bcanalyzer --dump --disable-histogram --show-binary-blobs %t/S.pcm > %t/S.dump
9 // RUN: cat %t/S.dump | FileCheck %s
12 static int static_func() {
20 // CHECK: <DECL_FUNCTION
21 // Checks that we won't see a second function
22 // CHECK-NOT: <DECL_FUNCTION