[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Frontend / absolute-paths-symlinks.c
blob8170910b6f6ecf30521590e13ee17b2783fe23bc
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
3 // RUN: cd %t
4 // RUN: cp %s test.c
5 // RUN: ln -sf test.c link.c
6 // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-absolute-paths link.c 2>&1 | FileCheck %s
8 // Verify that -fdiagnostics-absolute-paths resolve symbolic links in
9 // diagnostics messages.
11 // CHECK: test.c
12 // CHECK-SAME: error: unknown type name
13 This do not compile
15 // REQUIRES: shell
16 // Don't make symlinks on Windows.
17 // UNSUPPORTED: system-windows