brintos

brintos / llvm-project-archived public Read only

0
0
Text · 717 B · 1100662 Raw
32 lines · plain
1// Address: https://github.com/llvm/llvm-project/issues/604862//3// RUN: rm -rf %t4// RUN: mkdir -p %t5// RUN: split-file %s %t6//7// RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm8// RUN: %clang_cc1 -std=c++20 -fmodule-file=a=%t/a.pcm %t/b.cppm -fsyntax-only -verify9 10// RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-reduced-module-interface -o %t/a.pcm11// RUN: %clang_cc1 -std=c++20 -fmodule-file=a=%t/a.pcm %t/b.cppm -fsyntax-only -verify12 13//--- foo.h14template<typename = void>15struct s {16};17 18template<typename>19concept c = requires { s{}; };20 21//--- a.cppm22module;23#include "foo.h"24export module a;25 26//--- b.cppm27// expected-no-diagnostics28module;29#include "foo.h"30export module b;31import a;32