brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · c29b512 Raw
23 lines · plain
1# REQUIRES: system-darwin2# Test the rate-limiting of module not found warnings.3# RUN: rm -rf %t4# RUN: mkdir -p %t5 6# RUN: echo 'module "C" { header "c.h" }' >%t/module.modulemap7# RUN: echo 'struct c {};' >>%t/c.h8# RUN: echo '@import C;'                  >%t/a.m9# RUN: echo 'struct a { struct c c; } a;' >>%t/a.m10# RUN: echo '@import C;'                  >%t/b.m11# RUN: echo 'struct b { struct c c; } b;' >>%t/b.m12# RUN: echo 'int main() {}'               >>%t/b.m13 14# RUN: %clang_host -fmodules -Xclang -fmodules-cache-path=%t/cache -I%t -g -gmodules %t/a.m -o %t/a.o -c15# RUN: %clang_host -fmodules -Xclang -fmodules-cache-path=%t/cache -I%t -g -gmodules %t/b.m -o %t/b.o -c16# RUN: %clang_host %t/a.o %t/b.o -o %t/a.out17# RUN: rm -rf %t/cache18# RUN: %lldb %t/a.out -o "b main" -o run -o "expr a" -o "expr b" -o q 2>&1 | FileCheck %s19# CHECK: {{[ab]}}.o{{.*}}/cache/{{.*}}/C-{{.*}}.pcm' does not exist20# CHECK-NOT: /cache/{{.*}}/C-{.*}.pcm' does not exist21# CHECK: {{[ab]}}.o{{.*}}/cache/{{.*}}/C-{{.*}}.pcm' does not exist22# CHECK-NOT: /cache/{{.*}}/C-{.*}.pcm' does not exist23