]> granicus.if.org Git - clang/commitdiff
Add a test for -no-canonical-prefixes.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 17 Aug 2014 16:22:16 +0000 (16:22 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 17 Aug 2014 16:22:16 +0000 (16:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215836 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/no-canonical-prefixes.c [new file with mode: 0644]

diff --git a/test/Driver/no-canonical-prefixes.c b/test/Driver/no-canonical-prefixes.c
new file mode 100644 (file)
index 0000000..b1007db
--- /dev/null
@@ -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