blob: 8d63ca8706e89d29e835c0f0fdd8432161c00fbf [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