brintos

brintos / llvm-project-archived public Read only

0
0
Text · 455 B · 10d4854 Raw
19 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir -p %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm6// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/a.cpp -fmodule-file=a=%t/a.pcm -emit-llvm -o - | FileCheck %t/a.cpp7 8//--- a.cppm9export module a;10int func();11static int a = func();12 13//--- a.cpp14import a;15 16// CHECK-NOT: internal global17// CHECK-NOT: __cxx_global_var_init18 19