[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Modules / export_as_test.c
bloba73d6bfc460d6e9885bb585c840d56a90299aa29
1 // RUN: rm -rf %t
2 // RUN: not %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodule-map-file=%S/Inputs/export_as_test.modulemap %s 2> %t.err
3 // RUN: FileCheck %s < %t.err
5 // CHECK: export_as_test.modulemap:3:13: error: conflicting re-export of module 'PrivateFoo' as 'Foo' or 'Bar'
6 // CHECK: export_as_test.modulemap:4:13: warning: module 'PrivateFoo' already re-exported as 'Bar'
7 // CHECK: export_as_test.modulemap:7:15: error: only top-level modules can be re-exported as public