[cfe-commits] r136296 - /cfe/trunk/test/Driver/apple-kext-Xlinker-kext.cpp
Chad Rosier
mcrosier at apple.com
Wed Jul 27 16:37:42 PDT 2011
Author: mcrosier
Date: Wed Jul 27 18:37:42 2011
New Revision: 136296
URL: http://llvm.org/viewvc/llvm-project?rev=136296&view=rev
Log:
Test for r136294.
Added:
cfe/trunk/test/Driver/apple-kext-Xlinker-kext.cpp
Added: cfe/trunk/test/Driver/apple-kext-Xlinker-kext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/apple-kext-Xlinker-kext.cpp?rev=136296&view=auto
==============================================================================
--- cfe/trunk/test/Driver/apple-kext-Xlinker-kext.cpp (added)
+++ cfe/trunk/test/Driver/apple-kext-Xlinker-kext.cpp Wed Jul 27 18:37:42 2011
@@ -0,0 +1,15 @@
+// When -fapple-kext is specified, make sure we add -kext to the linker command.
+
+// RUN: %clang -### -fapple-kext %s 2> %t1
+// RUN: FileCheck --check-prefix=CHECK1 < %t1 %s
+
+// CHECK1: "-fapple-kext"
+// CHECK1: "-kext"
+
+// RUN: %clang -### -fapple-kext -Xlinker -kext %s 2> %t2
+// RUN: FileCheck --check-prefix=CHECK2 < %t2 %s
+
+// CHECK2: "-fapple-kext"
+// CHECK2: "-kext"
+// CHECK2-NOT: "-kext"
+
More information about the cfe-commits
mailing list