brintos

brintos / llvm-project-archived public Read only

0
0
Text · 384 B · 4f76543 Raw
18 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir -p %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm6// RUN: %clang_cc1 -std=c++20 %t/use.cpp -fmodule-file=a=%t/a.pcm -fsyntax-only -verify7 8//--- a.cppm9export module a;10export auto cmp = [](auto l, auto r) {11  return l < r;12};13 14//--- use.cpp15// expected-no-diagnostics16import a;17auto x = cmp;18