blob: 6a6860e1902ec9bacc1efc90e792f3f0b79e667d [file] [log] [blame]
Ted Kremenek5099b802009-12-12 00:42:52 +00001// RUN: clang -### -S -x c /dev/null -fblocks -fbuiltin -fmath-errno -fcommon -fpascal-strings -fno-blocks -fno-builtin -fno-math-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 -x c /dev/null -fblocks -fbuiltin -fmath-errno -fcommon -fpascal-strings -fno-blocks -fno-builtin -fno-math-errno -fno-common -fno-pascal-strings -fno-show-source-location -fshort-wchar %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s
Ted Kremenek6feaf572009-12-12 00:38:18 +00003// RUN: clang -fshort-enums -x c /dev/null 2>&1 | FileCheck -check-prefix=CHECK-SHORT-ENUMS %s
4
Ted Kremenek5099b802009-12-12 00:42:52 +00005// CHECK-OPTIONS1: -fblocks
6// CHECK-OPTIONS1: -fpascal-strings
7
8// CHECK-OPTIONS2: -fno-builtin
9// CHECK-OPTIONS2: -fno-common
10// CHECK-OPTIONS2: -fno-math-errno
11// CHECK-OPTIONS2: -fno-show-source-location
12// CHECL-OPTIONS2: -fshort-wchar
13
Ted Kremenek6feaf572009-12-12 00:38:18 +000014// CHECK-SHORT-ENUMS: compiler does not support '-fshort-enums'