Home | History | Annotate | Download | only in Driver
      1 // Check miscellaneous Objective-C options.
      2 
      3 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
      4 // RUN:   -arch x86_64 -fobjc-abi-version=1 2> %t
      5 // RUN: FileCheck --check-prefix CHECK-X86_64_ABI1 < %t %s
      6 
      7 // CHECK-CHECK-X86_64_ABI1: "-cc1"
      8 // CHECK-CHECK-X86_64_ABI1: -fobjc-fragile-abi
      9 // CHECK-CHECK-X86_64_ABI1-NOT: -fobjc-dispatch-method
     10 // CHECK-CHECK-X86_64_ABI1: darwin-objc-options
     11 
     12 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
     13 // RUN:   -arch i386 -fobjc-abi-version=2 2> %t
     14 // RUN: FileCheck --check-prefix CHECK-I386_ABI2 < %t %s
     15 
     16 // CHECK-CHECK-I386_ABI2: "-cc1"
     17 // CHECK-CHECK-I386_ABI2-NOT: -fobjc-fragile-abi
     18 // CHECK-CHECK-I386_ABI2: -fobjc-exceptions
     19 // CHECK-CHECK-I386_ABI2: -fexceptions
     20 // CHECK-CHECK-I386_ABI2-NOT: -fobjc-dispatch-method
     21 // CHECK-CHECK-I386_ABI2: darwin-objc-options
     22