brintos

brintos / llvm-project-archived public Read only

0
0
Text · 456 B · bfaa629 Raw
26 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 -fsyntax-only -verify6 7//--- foo.h8extern "C++" void c_func();9 10//--- a.cppm11// expected-no-diagnostics12module;13#include "foo.h"14export module a;15export extern "C++" void foo() {}16extern "C++" void bar() {}17export extern "C" void foo_c() {}18extern "C" void bar_c() {}19export void a() {20    foo();21    bar();22    foo_c();23    bar_c();24    c_func();25}26