2010-04-29 07:25:24 +08:00
|
|
|
// Check miscellaneous Objective-C options.
|
|
|
|
|
2012-01-14 05:33:06 +08:00
|
|
|
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
2010-04-29 07:25:24 +08:00
|
|
|
// RUN: -arch x86_64 -fobjc-abi-version=1 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix CHECK-X86_64_ABI1 < %t %s
|
|
|
|
|
|
|
|
// CHECK-CHECK-X86_64_ABI1: "-cc1"
|
2011-10-02 09:16:38 +08:00
|
|
|
// CHECK-CHECK-X86_64_ABI1: -fobjc-fragile-abi
|
2010-04-29 07:25:24 +08:00
|
|
|
// CHECK-CHECK-X86_64_ABI1-NOT: -fobjc-dispatch-method
|
|
|
|
// CHECK-CHECK-X86_64_ABI1: darwin-objc-options
|
|
|
|
|
2012-01-14 05:33:06 +08:00
|
|
|
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
2010-04-29 07:25:24 +08:00
|
|
|
// RUN: -arch i386 -fobjc-abi-version=2 2> %t
|
|
|
|
// RUN: FileCheck --check-prefix CHECK-I386_ABI2 < %t %s
|
|
|
|
|
|
|
|
// CHECK-CHECK-I386_ABI2: "-cc1"
|
2011-10-02 09:16:38 +08:00
|
|
|
// CHECK-CHECK-I386_ABI2-NOT: -fobjc-fragile-abi
|
2011-06-22 08:53:57 +08:00
|
|
|
// CHECK-CHECK-I386_ABI2: -fobjc-exceptions
|
|
|
|
// CHECK-CHECK-I386_ABI2: -fexceptions
|
2010-04-29 07:25:24 +08:00
|
|
|
// CHECK-CHECK-I386_ABI2-NOT: -fobjc-dispatch-method
|
|
|
|
// CHECK-CHECK-I386_ABI2: darwin-objc-options
|