2010-05-22 10:21:53 +08:00
|
|
|
// 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
|
2010-10-08 08:25:19 +08:00
|
|
|
// 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
|
2009-12-12 08:38:18 +08:00
|
|
|
|
2010-05-22 10:21:53 +08:00
|
|
|
// CHECK-OPTIONS1: -fgnu-keywords
|
2009-12-12 08:42:52 +08:00
|
|
|
// CHECK-OPTIONS1: -fblocks
|
|
|
|
// CHECK-OPTIONS1: -fpascal-strings
|
|
|
|
|
2010-05-22 10:21:53 +08:00
|
|
|
// CHECK_OPTIONS2: -fno-gnu-keywords
|
2010-01-08 10:20:44 +08:00
|
|
|
// CHECK-OPTIONS2: -fmath-errno
|
2009-12-12 08:42:52 +08:00
|
|
|
// CHECK-OPTIONS2: -fno-builtin
|
2010-10-08 08:25:19 +08:00
|
|
|
// CHECK-OPTIONS2: -fshort-enums
|
2009-12-13 10:00:23 +08:00
|
|
|
// CHECK-OPTIONS2: -fshort-wchar
|
2009-12-12 08:42:52 +08:00
|
|
|
// CHECK-OPTIONS2: -fno-common
|
|
|
|
// CHECK-OPTIONS2: -fno-show-source-location
|
2011-04-23 14:30:43 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -S -Wwrite-strings %s 2>&1 | FileCheck -check-prefix=WRITE-STRINGS1 %s
|
|
|
|
// WRITE-STRINGS1: -fconst-strings
|
|
|
|
// RUN: %clang -### -S -Wwrite-strings -Wno-write-strings %s 2>&1 | FileCheck -check-prefix=WRITE-STRINGS2 %s
|
|
|
|
// WRITE-STRINGS2-NOT: -fconst-strings
|
|
|
|
// RUN: %clang -### -S -Wwrite-strings -w %s 2>&1 | FileCheck -check-prefix=WRITE-STRINGS3 %s
|
|
|
|
// WRITE-STRINGS3: -fconst-strings
|
2011-04-23 17:27:53 +08:00
|
|
|
|
2011-04-24 03:48:40 +08:00
|
|
|
// RUN: %clang -### -x c++ -c %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s
|
|
|
|
// RUN: %clang -### -x c++ -c -Wdeprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s
|
|
|
|
// RUN: %clang -### -x c++ -c -Wno-deprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-OFF-CHECK %s
|
|
|
|
// RUN: %clang -### -x c++ -c -Wno-deprecated -Wdeprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s
|
|
|
|
// RUN: %clang -### -x c++ -c -w %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s
|
|
|
|
// RUN: %clang -### -c %s 2>&1 | FileCheck -check-prefix=DEPRECATED-OFF-CHECK %s
|
|
|
|
// RUN: %clang -### -c -Wdeprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-OFF-CHECK %s
|
|
|
|
// DEPRECATED-ON-CHECK: -fdeprecated-macro
|
|
|
|
// DEPRECATED-OFF-CHECK-NOT: -fdeprecated-macro
|