brintos

brintos / llvm-project-archived public Read only

0
0
Text · 451 B · c55f2c3 Raw
19 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -std=c++20 %t/a.interface.cppm -emit-module-interface -o %t/a.pcm6// RUN: %clang_cc1 -std=c++20 %t/a.impl.cc -fmodule-file=a:interface=%t/a.pcm \7// RUN:     -verify -fsyntax-only8 9//--- a.interface.cppm10export module a:interface;11extern "C++" constexpr int a = 43;12 13//--- a.impl.cc14// expected-no-diagnostics15module a:impl;16import :interface;17static_assert(a == 43);18 19