1 // RUN: %clang_cc1 -fmodules-ts %S/module.cppm -triple %itanium_abi_triple -emit-module-interface -o %t 2 // RUN: %clang_cc1 -fmodules-ts %s -triple %itanium_abi_triple -fmodule-file=%t -emit-llvm -o - | FileCheck %s --implicit-check-not=unused --implicit-check-not=global_module 3 4 // CHECK-DAG: @extern_var_exported = external global 5 // FIXME: Should this be 'external global'? 6 // CHECK-DAG: @inline_var_exported = linkonce_odr global 7 // FIXME: These should be 'extern global' and 'extern constant'. 8 // CHECK-DAG: @_ZL19static_var_exported = global 9 // CHECK-DAG: @const_var_exported = constant 10 11 import Module; 12 13 void use() { 14 // CHECK: define linkonce_odr {{.*}}@_Z20used_inline_exportedv 15 used_inline_exported(); 16 // CHECK: declare {{.*}}@_Z18noninline_exportedv 17 noninline_exported(); 18 19 (void)&extern_var_exported; 20 (void)&inline_var_exported; 21 (void)&static_var_exported; 22 (void)&const_var_exported; 23 24 // Module-linkage declarations are not visible here. 25 } 26