r196621 - test/Driver: Check that @ arguments that aren't files are handled

Justin Bogner mail at justinbogner.com
Fri Dec 6 14:57:13 PST 2013


Author: bogner
Date: Fri Dec  6 16:57:13 2013
New Revision: 196621

URL: http://llvm.org/viewvc/llvm-project?rev=196621&view=rev
Log:
test/Driver: Check that @ arguments that aren't files are handled

This tests the bug fix in llvm r196620.

Added:
    cfe/trunk/test/Driver/at_file_missing.c

Added: cfe/trunk/test/Driver/at_file_missing.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/at_file_missing.c?rev=196621&view=auto
==============================================================================
--- cfe/trunk/test/Driver/at_file_missing.c (added)
+++ cfe/trunk/test/Driver/at_file_missing.c Fri Dec  6 16:57:13 2013
@@ -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"





More information about the cfe-commits mailing list