From: Rafael Espindola Date: Sun, 17 Aug 2014 16:22:16 +0000 (+0000) Subject: Add a test for -no-canonical-prefixes. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61f219bfb99e377aa4f018e263769006b5008730;p=clang Add a test for -no-canonical-prefixes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215836 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/no-canonical-prefixes.c b/test/Driver/no-canonical-prefixes.c new file mode 100644 index 0000000000..b1007db0dc --- /dev/null +++ b/test/Driver/no-canonical-prefixes.c @@ -0,0 +1,10 @@ +// REQUIRES: shell +// RUN: mkdir -p %t +// RUN: cd %t +// RUN: ln -sf %clang test-clang +// RUN: ./test-clang -v -S %s 2>&1 | FileCheck %s +// RUN: ./test-clang -v -S %s -no-canonical-prefixes 2>&1 | FileCheck --check-prefix=NCP %s + + +// CHECK: /bin/clang{{.*}}" -cc1 +// NCP: test-clang" -cc1