xref: /aosp_15_r20/external/clang/test/Driver/no-canonical-prefixes.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // Due to ln -sf:
2*67e74705SXin Li // REQUIRES: shell
3*67e74705SXin Li // RUN: mkdir -p %t.real
4*67e74705SXin Li // RUN: cd %t.real
5*67e74705SXin Li // RUN: ln -sf %clang test-clang
6*67e74705SXin Li // RUN: cd ..
7*67e74705SXin Li // RUN: ln -sf %t.real %t.fake
8*67e74705SXin Li // RUN: cd %t.fake
9*67e74705SXin Li // RUN: ./test-clang -v -S %s 2>&1 | FileCheck --check-prefix=CANONICAL %s
10*67e74705SXin Li // RUN: ./test-clang -v -S %s -no-canonical-prefixes 2>&1 | FileCheck --check-prefix=NON-CANONICAL %s
11*67e74705SXin Li //
12*67e74705SXin Li // FIXME: This should really be '.real'.
13*67e74705SXin Li // CANONICAL: InstalledDir: {{.*}}.fake
14*67e74705SXin Li // CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1
15*67e74705SXin Li //
16*67e74705SXin Li // NON-CANONICAL: InstalledDir: .{{$}}
17*67e74705SXin Li // NON-CANONICAL: test-clang" -cc1
18