Home | History | Annotate | Download | only in Driver
      1 // Check non-fragile ABI and dispatch method defaults.
      2 
      3 // i386
      4 
      5 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
      6 // RUN:   -arch i386 -mmacosx-version-min=10.5 2> %t
      7 // RUN: FileCheck --check-prefix CHECK-I386_OSX10_5 < %t %s
      8 
      9 // CHECK-CHECK-I386_OSX10_5: "-cc1"
     10 // CHECK-CHECK-I386_OSX10_5: -fobjc-runtime=macosx-fragile-10.5
     11 // CHECK-CHECK-I386_OSX10_5-NOT: -fobjc-dispatch-method
     12 // CHECK-CHECK-I386_OSX10_5: darwin-objc-defaults
     13 
     14 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
     15 // RUN:   -arch i386 -mmacosx-version-min=10.6 2> %t
     16 // RUN: FileCheck --check-prefix CHECK-I386_OSX10_6 < %t %s
     17 
     18 // CHECK-CHECK-I386_OSX10_6: "-cc1"
     19 // CHECK-CHECK-I386_OSX10_6: -fobjc-runtime=macosx-fragile-10.6
     20 // CHECK-CHECK-I386_OSX10_6-NOT: -fobjc-dispatch-method
     21 // CHECK-CHECK-I386_OSX10_6: darwin-objc-defaults
     22 
     23 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
     24 // RUN:   -arch i386 -miphoneos-version-min=3.0 2> %t
     25 // RUN: FileCheck --check-prefix CHECK-I386_IPHONE3_0 < %t %s
     26 
     27 // CHECK-CHECK-I386_IPHONE3_0: "-cc1"
     28 // CHECK-CHECK-I386_IPHONE3_0: -fobjc-runtime=ios-3.0
     29 // CHECK-CHECK-I386_IPHONE3_0-NOT: -fobjc-dispatch-method
     30 // CHECK-CHECK-I386_IPHONE3_0: darwin-objc-defaults
     31 
     32 // x86_64
     33 
     34 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
     35 // RUN:   -arch x86_64 -mmacosx-version-min=10.5 2> %t
     36 // RUN: FileCheck --check-prefix CHECK-X86_64_OSX10_5 < %t %s
     37 
     38 // CHECK-CHECK-X86_64_OSX10_5: "-cc1"
     39 // CHECK-CHECK-X86_64_OSX10_5: -fobjc-runtime=macosx-10.5
     40 // CHECK-CHECK-X86_64_OSX10_5: -fobjc-dispatch-method=non-legacy
     41 // CHECK-CHECK-X86_64_OSX10_5: darwin-objc-defaults
     42 
     43 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
     44 // RUN:   -arch x86_64 -mmacosx-version-min=10.6 2> %t
     45 // RUN: FileCheck --check-prefix CHECK-X86_64_OSX10_6 < %t %s
     46 
     47 // CHECK-CHECK-X86_64_OSX10_6: "-cc1"
     48 // CHECK-CHECK-X86_64_OSX10_6: -fobjc-runtime=macosx-10.6
     49 // CHECK-CHECK-X86_64_OSX10_6: -fobjc-dispatch-method=mixed
     50 // CHECK-CHECK-X86_64_OSX10_6: darwin-objc-defaults
     51 
     52 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
     53 // RUN:   -arch x86_64 -miphoneos-version-min=3.0 2> %t
     54 // RUN: FileCheck --check-prefix CHECK-X86_64_IPHONE3_0 < %t %s
     55 
     56 // CHECK-CHECK-X86_64_IPHONE3_0: "-cc1"
     57 // CHECK-CHECK-X86_64_IPHONE3_0: -fobjc-runtime=ios-3.0
     58 // CHECK-CHECK-X86_64_IPHONE3_0: -fobjc-dispatch-method=mixed
     59 // CHECK-CHECK-X86_64_IPHONE3_0: darwin-objc-defaults
     60 
     61 // armv7
     62 
     63 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
     64 // RUN:   -arch armv7 -mmacosx-version-min=10.5 2> %t
     65 // RUN: FileCheck --check-prefix CHECK-ARMV7_OSX10_5 < %t %s
     66 
     67 // CHECK-CHECK-ARMV7_OSX10_5: "-cc1"
     68 // CHECK-CHECK-ARMV7_OSX10_5: -fobjc-runtime=macosx-10.5
     69 // CHECK-CHECK-ARMV7_OSX10_5-NOT: -fobjc-dispatch-method
     70 // CHECK-CHECK-ARMV7_OSX10_5: darwin-objc-defaults
     71 
     72 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s	\
     73 // RUN:   -arch armv7 -mmacosx-version-min=10.6 2> %t
     74 // RUN: FileCheck --check-prefix CHECK-ARMV7_OSX10_6 < %t %s
     75 
     76 // CHECK-CHECK-ARMV7_OSX10_6: "-cc1"
     77 // CHECK-CHECK-ARMV7_OSX10_6: -fobjc-runtime=macosx-10.6
     78 // CHECK-CHECK-ARMV7_OSX10_6-NOT: -fobjc-dispatch-method
     79 // CHECK-CHECK-ARMV7_OSX10_6: darwin-objc-defaults
     80 
     81 // RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
     82 // RUN:   -arch armv7 -miphoneos-version-min=3.0 2> %t
     83 // RUN: FileCheck --check-prefix CHECK-ARMV7_IPHONE3_0 < %t %s
     84 
     85 // CHECK-CHECK-ARMV7_IPHONE3_0: "-cc1"
     86 // CHECK-CHECK-ARMV7_IPHONE3_0: -fobjc-runtime=ios-3.0
     87 // CHECK-CHECK-ARMV7_IPHONE3_0-NOT: -fobjc-dispatch-method
     88 // CHECK-CHECK-ARMV7_IPHONE3_0: darwin-objc-defaults
     89