1 // RUN: %clang -### -S -fasm -fblocks -fbuiltin -fno-math-errno -fcommon -fpascal-strings -fno-blocks -fno-builtin -fmath-errno -fno-common -fno-pascal-strings -fblocks -fbuiltin -fmath-errno -fcommon -fpascal-strings %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS1 %s 2 // RUN: %clang -### -S -fasm -fblocks -fbuiltin -fno-math-errno -fcommon -fpascal-strings -fno-asm -fno-blocks -fno-builtin -fmath-errno -fno-common -fno-pascal-strings -fno-show-source-location -fshort-enums -fshort-wchar %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s 3 4 // CHECK-OPTIONS1: -fgnu-keywords 5 // CHECK-OPTIONS1: -fblocks 6 // CHECK-OPTIONS1: -fpascal-strings 7 8 // CHECK_OPTIONS2: -fno-gnu-keywords 9 // CHECK-OPTIONS2: -fmath-errno 10 // CHECK-OPTIONS2: -fno-builtin 11 // CHECK-OPTIONS2: -fshort-enums 12 // CHECK-OPTIONS2: -fshort-wchar 13 // CHECK-OPTIONS2: -fno-common 14 // CHECK-OPTIONS2: -fno-show-source-location 15 16 // RUN: %clang -### -S -Wwrite-strings %s 2>&1 | FileCheck -check-prefix=WRITE-STRINGS1 %s 17 // WRITE-STRINGS1: -fconst-strings 18 // RUN: %clang -### -S -Wwrite-strings -Wno-write-strings %s 2>&1 | FileCheck -check-prefix=WRITE-STRINGS2 %s 19 // WRITE-STRINGS2-NOT: -fconst-strings 20 // RUN: %clang -### -S -Wwrite-strings -w %s 2>&1 | FileCheck -check-prefix=WRITE-STRINGS3 %s 21 // WRITE-STRINGS3: -fconst-strings 22 23 // RUN: %clang -### -x c++ -c %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s 24 // RUN: %clang -### -x c++ -c -Wdeprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s 25 // RUN: %clang -### -x c++ -c -Wno-deprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-OFF-CHECK %s 26 // RUN: %clang -### -x c++ -c -Wno-deprecated -Wdeprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s 27 // RUN: %clang -### -x c++ -c -w %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s 28 // RUN: %clang -### -c %s 2>&1 | FileCheck -check-prefix=DEPRECATED-OFF-CHECK %s 29 // RUN: %clang -### -c -Wdeprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-OFF-CHECK %s 30 // DEPRECATED-ON-CHECK: -fdeprecated-macro 31 // DEPRECATED-OFF-CHECK-NOT: -fdeprecated-macro 32 33 // RUN: %clang -### -S -ffp-contract=fast %s 2>&1 | FileCheck -check-prefix=FP-CONTRACT-FAST-CHECK %s 34 // RUN: %clang -### -S -ffast-math %s 2>&1 | FileCheck -check-prefix=FP-CONTRACT-FAST-CHECK %s 35 // RUN: %clang -### -S -ffp-contract=off %s 2>&1 | FileCheck -check-prefix=FP-CONTRACT-OFF-CHECK %s 36 // FP-CONTRACT-FAST-CHECK: -ffp-contract=fast 37 // FP-CONTRACT-OFF-CHECK: -ffp-contract=off 38 39 // RUN: %clang -fms-extensions -fenable-experimental-ms-inline-asm %s -### 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS3 %s 40 // CHECK-OPTIONS3: -fenable-experimental-ms-inline-asm 41