llvm-project/clang/test/Driver/apple-kext-Xlinker-kext.cpp

16 lines
398 B
C++
Raw Normal View History

2011-07-28 07:37:42 +08:00
// 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"