[AMDGPU] Removed superfluous predicate. NFC.
[llvm-project.git] / clang / test / Driver / no-canonical-prefixes.c
blobfb54f85f959ae269db4e6ea47eba2059df18d605
1 // Due to ln -sf:
2 // REQUIRES: shell
3 // RUN: mkdir -p %t.real
4 // RUN: cd %t.real
5 // RUN: ln -sf %clang test-clang
6 // RUN: cd ..
7 // Important to remove %t.fake: If it already is a symlink to %t.real when
8 // `ln -sf %t.real %t.fake` runs, then that would symlink %t.real to itself,
9 // forming a cycle.
10 // RUN: rm -f %t.fake
11 // RUN: ln -sf %t.real %t.fake
12 // RUN: cd %t.fake
13 // RUN: ./test-clang -v -S %s 2>&1 \
14 // RUN: | FileCheck --check-prefix=CANONICAL %s
15 // RUN: ./test-clang -v -S %s 2>&1 \
16 // RUN: -no-canonical-prefixes \
17 // RUN: | FileCheck --check-prefix=NON-CANONICAL %s
18 // RUN: ./test-clang -v -S %s 2>&1 \
19 // RUN: -no-canonical-prefixes \
20 // RUN: -canonical-prefixes \
21 // RUN: | FileCheck --check-prefix=CANONICAL %s
22 // RUN: ./test-clang -v -S %s 2>&1 \
23 // RUN: -no-canonical-prefixes \
24 // RUN: -canonical-prefixes \
25 // RUN: -no-canonical-prefixes \
26 // RUN: | FileCheck --check-prefix=NON-CANONICAL %s
28 // FIXME: This should really be '.real'.
29 // CANONICAL: InstalledDir: {{.*}}.fake
30 // CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1
32 // NON-CANONICAL: InstalledDir: .{{$}}
33 // NON-CANONICAL: test-clang" -cc1