blob: 50bce3b274caf130a9a0dde3c84f74b1ffa3ff01 [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
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-wchar %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s
Daniel Dunbar80737ad2009-12-15 22:01:24 +00003// RUN: %clang -### -fshort-enums %s 2>&1 | FileCheck -check-prefix=CHECK-SHORT-ENUMS %s
Ted Kremenek6feaf572009-12-12 00:38:18 +00004
Chandler Carruthc304ba32010-05-22 02:21:53 +00005// CHECK-OPTIONS1: -fgnu-keywords
Ted Kremenek5099b802009-12-12 00:42:52 +00006// CHECK-OPTIONS1: -fblocks
7// CHECK-OPTIONS1: -fpascal-strings
8
Chandler Carruthc304ba32010-05-22 02:21:53 +00009// CHECK_OPTIONS2: -fno-gnu-keywords
Dan Gohmanc31176d2010-01-08 02:20:44 +000010// CHECK-OPTIONS2: -fmath-errno
Daniel Dunbar288294f2009-12-13 02:00:23 +000011// CHECK-OPTIONS2: -fno-builtin
12// CHECK-OPTIONS2: -fshort-wchar
13// CHECK-OPTIONS2: -fno-common
Ted Kremenek5099b802009-12-12 00:42:52 +000014// CHECK-OPTIONS2: -fno-show-source-location
Ted Kremenek5099b802009-12-12 00:42:52 +000015
Ted Kremenek6feaf572009-12-12 00:38:18 +000016// CHECK-SHORT-ENUMS: compiler does not support '-fshort-enums'