1// RUN: rm -rf %t 2// RUN: mkdir -p %t 3// RUN: split-file %s %t 4// 5// RUN: %clang_cc1 -std=c++20 %t/foo.cppm -emit-module-interface -o %t/foo.pcm 6// RUN: %clang_cc1 -std=c++20 %t/use.cpp -fmodule-file=foo=%t/foo.pcm -verify -fsyntax-only 7 8//--- a.hpp 9#pragma once 10#define A 43 11 12//--- foo.cppm 13module; 14#include "a.hpp" 15export module foo; 16export constexpr auto B = A; 17 18//--- use.cpp 19// expected-no-diagnostics 20import foo; 21#include "a.hpp" 22 23static_assert(A == 43); 24static_assert(B == 43); 25 26