Debian Codegraph @

clang/test/CXX/module/codegen-basics.cppm

raw
1 // RUN: %clang_cc1 -std=c++20 -triple=x86_64-linux-gnu -fmodules-codegen -emit-module-interface %s -o %t.pcm
2 // RUN: %clang_cc1 -std=c++20 -triple=x86_64-linux-gnu %t.pcm -emit-llvm -o - | FileCheck %s
3
4 export module FooBar;
5
6 export {
7 // CHECK-DAG: define{{.*}} i32 @_ZW6FooBar1fv(
8 int f() { return 0; }
9 }
10
11 // CHECK-DAG: define weak_odr void @_ZW6FooBar2f2v(
12 inline void f2() {}
13
14 // CHECK-DAG: define{{.*}} void @_ZL2f3v(
15 static void f3() {}
16 export void use_f3() { f3(); }