Home | History | Annotate | Download | only in Driver
      1 // RUN: %clang -### -c -mcmodel=small %s 2>&1 | FileCheck -check-prefix CHECK-SMALL %s
      2 // RUN: %clang -### -S -mcmodel=kernel %s 2>&1 | FileCheck -check-prefix CHECK-KERNEL %s
      3 // RUN: %clang -### -c -mcmodel=medium %s 2>&1 | FileCheck -check-prefix CHECK-MEDIUM %s
      4 // RUN: %clang -### -S -mcmodel=large %s 2>&1 | FileCheck -check-prefix CHECK-LARGE %s
      5 // RUN: not %clang -c -mcmodel=lager %s 2>&1 | FileCheck -check-prefix CHECK-INVALID %s
      6 
      7 // CHECK-SMALL: "-mcode-model" "small"
      8 // CHECK-KERNEL: "-mcode-model" "kernel"
      9 // CHECK-MEDIUM: "-mcode-model" "medium"
     10 // CHECK-LARGE: "-mcode-model" "large"
     11 
     12 // CHECK-INVALID: error: invalid value 'lager' in '-mcode-model lager'
     13 
     14