summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2013-12-06 22:57:13 +0000
committerJustin Bogner <mail@justinbogner.com>2013-12-06 22:57:13 +0000
commit9ca8df1e3f11fccfd713dc760ae8155247251760 (patch)
treed24cdf4738b350370f84f272f194d52a5e8b4828
parent67ae9912a6471f4ec9666b456914e0fb8ead1bf1 (diff)
downloadbcm5719-llvm-9ca8df1e3f11fccfd713dc760ae8155247251760.tar.gz
bcm5719-llvm-9ca8df1e3f11fccfd713dc760ae8155247251760.zip
test/Driver: Check that @ arguments that aren't files are handled
This tests the bug fix in llvm r196620. llvm-svn: 196621
-rw-r--r--clang/test/Driver/at_file_missing.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/at_file_missing.c b/clang/test/Driver/at_file_missing.c
new file mode 100644
index 00000000000..0189a8bb757
--- /dev/null
+++ b/clang/test/Driver/at_file_missing.c
@@ -0,0 +1,7 @@
+// Make sure that arguments that begin with @ are left as is in the argument
+// stream, and also that @file arguments continue to be processed.
+
+// RUN: echo "%s -D FOO" > %t.args
+// RUN: %clang -rpath @executable_path/../lib @%t.args -### 2>&1 | FileCheck %s
+// CHECK: "-D" "FOO"
+// CHECK: "-rpath" "@executable_path/../lib"
OpenPOWER on IntegriCloud