llvm-project/clang/test/Frontend/absolute-paths-symlinks.c
Karl-Johan Karlsson 073cdb2390 [clang][test] Minor fixes in testcase absolute-paths-symlinks.c
This is a follow up commit to address post-commit comment in D70527.
2019-12-26 09:33:21 +01:00

18 lines
452 B
C

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: cd %t
// RUN: cp %s test.c
// RUN: ln -sf test.c link.c
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-absolute-paths link.c 2>&1 | FileCheck %s
// Verify that -fdiagnostics-absolute-paths resolve symbolic links in
// diagnostics messages.
// CHECK: test.c
// CHECK-SAME: error: unknown type name
This do not compile
// REQUIRES: shell
// Don't make symlinks on Windows.
// UNSUPPORTED: system-windows