blob: 4eed4aa06f3f341e2c00e03474581e690363214c [file] [log] [blame]
Chandler Carruthc304ba32010-05-22 02:21:53 +00001// 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
Argyrios Kyrtzidis9a2b9d72010-10-08 00:25:19 +00002// 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
Ted Kremenek6feaf572009-12-12 00:38:18 +00003
Chandler Carruthc304ba32010-05-22 02:21:53 +00004// CHECK-OPTIONS1: -fgnu-keywords
Ted Kremenek5099b802009-12-12 00:42:52 +00005// CHECK-OPTIONS1: -fblocks
6// CHECK-OPTIONS1: -fpascal-strings
7
Chandler Carruthc304ba32010-05-22 02:21:53 +00008// CHECK_OPTIONS2: -fno-gnu-keywords
Dan Gohmanc31176d2010-01-08 02:20:44 +00009// CHECK-OPTIONS2: -fmath-errno
Daniel Dunbar288294f2009-12-13 02:00:23 +000010// CHECK-OPTIONS2: -fno-builtin
Argyrios Kyrtzidis9a2b9d72010-10-08 00:25:19 +000011// CHECK-OPTIONS2: -fshort-enums
Daniel Dunbar288294f2009-12-13 02:00:23 +000012// CHECK-OPTIONS2: -fshort-wchar
13// CHECK-OPTIONS2: -fno-common
Ted Kremenek5099b802009-12-12 00:42:52 +000014// CHECK-OPTIONS2: -fno-show-source-location
Chandler Carruth50465d12011-04-23 06:30:43 +000015
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
Chandler Carruth1cfe3c32011-04-23 09:27:53 +000022
Chandler Carruthf8c247d2011-04-23 19:48:40 +000023// 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