1 // https://github.com/llvm/llvm-project/issues/59780
5 // RUN: split-file %s %t
7 // RUN: %clang_cc1 -std=c++20 %t/data.cppm -emit-module-interface -o %t/data.pcm
8 // RUN: %clang_cc1 -std=c++20 %t/main.cpp -fprebuilt-module-path=%t -fsyntax-only -verify
20 requires(__is_trivially_destructible(_Tp))
24 requires(!__is_trivially_destructible(_Tp))
32 unique_ptr(void* __p) {}
42 export namespace std {
43 using std::unique_ptr;
47 export std::expected<std::unique_ptr<int>> parse() {
48 return std::unique_ptr<int>(nullptr);
52 // expected-no-diagnostics
55 int main(int argc, const char *argv[]) {
56 std::expected<std::unique_ptr<int>> result = parse();