Debian Codegraph @

clang/test/CXX/module/basic/basic.link/p3.cppm

raw
1 // RUN: %clang_cc1 -std=c++20 -triple x86_64-linux %s -emit-module-interface -o %t
2 // RUN: %clang_cc1 -std=c++20 -triple x86_64-linux -x pcm %t -emit-llvm -o - | FileCheck %s
3
4 export module M;
5
6 // CHECK: @_ZW1M1a ={{.*}} constant i32 1
7 const int a = 1;
8 // CHECK: @_ZW1M1b ={{.*}} constant i32 2
9 export const int b = 2;
10
11 export int f() { return a + b; }