brintos

brintos / llvm-project-archived public Read only

0
0
Text · 441 B · 7c971ff Raw
23 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//--- lambda.h9auto cmp = [](auto l, auto r) {10  return l < r;11};12 13//--- a.cppm14module;15#include "lambda.h"16export module a;17export using ::cmp;18 19//--- use.cpp20// expected-no-diagnostics21import a;22auto x = cmp;23