1 # REQUIRES: system-darwin
2 # Test the rate-limiting of module not found warnings.
6 # RUN: echo 'module "C" { header "c.h" }' >%t/module.modulemap
7 # RUN: echo 'struct c {};' >>%t/c.h
8 # RUN: echo '@import C;' >%t/a.m
9 # RUN: echo 'struct a { struct c c; } a;' >>%t/a.m
10 # RUN: echo '@import C;' >%t/b.m
11 # RUN: echo 'struct b { struct c c; } b;' >>%t/b.m
12 # RUN: echo 'int main() {}' >>%t/b.m
14 # RUN: %clang_host -fmodules -Xclang -fmodules-cache-path=%t/cache -I%t -g -gmodules %t/a.m -o %t/a.o -c
15 # RUN: %clang_host -fmodules -Xclang -fmodules-cache-path=%t/cache -I%t -g -gmodules %t/b.m -o %t/b.o -c
16 # RUN: %clang_host %t/a.o %t/b.o -o %t/a.out
17 # RUN: rm -rf %t/cache
18 # RUN: %lldb %t/a.out -o "b main" -o run -o "p a" -o "p b" -o q 2>&1 | FileCheck %s
19 # CHECK: {{[ab]}}.o{{.*}}/cache/{{.*}}/C-{{.*}}.pcm' does not exist
20 # CHECK-NOT: /cache/{{.*}}/C-{.*}.pcm' does not exist
21 # CHECK: {{[ab]}}.o{{.*}}/cache/{{.*}}/C-{{.*}}.pcm' does not exist
22 # CHECK-NOT: /cache/{{.*}}/C-{.*}.pcm' does not exist