Daniel Dunbar | 288294f | 2009-12-13 02:00:23 +0000 | [diff] [blame^] | 1 | // RUN: clang -### -S -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 -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 |
| 3 | // RUN: clang -### -fshort-enums %s 2>&1 | FileCheck -check-prefix=CHECK-SHORT-ENUMS %s |
Ted Kremenek | 6feaf57 | 2009-12-12 00:38:18 +0000 | [diff] [blame] | 4 | |
Ted Kremenek | 5099b80 | 2009-12-12 00:42:52 +0000 | [diff] [blame] | 5 | // CHECK-OPTIONS1: -fblocks |
| 6 | // CHECK-OPTIONS1: -fpascal-strings |
| 7 | |
Ted Kremenek | 5099b80 | 2009-12-12 00:42:52 +0000 | [diff] [blame] | 8 | // CHECK-OPTIONS2: -fno-math-errno |
Daniel Dunbar | 288294f | 2009-12-13 02:00:23 +0000 | [diff] [blame^] | 9 | // CHECK-OPTIONS2: -fno-builtin |
| 10 | // CHECK-OPTIONS2: -fshort-wchar |
| 11 | // CHECK-OPTIONS2: -fno-common |
Ted Kremenek | 5099b80 | 2009-12-12 00:42:52 +0000 | [diff] [blame] | 12 | // CHECK-OPTIONS2: -fno-show-source-location |
Ted Kremenek | 5099b80 | 2009-12-12 00:42:52 +0000 | [diff] [blame] | 13 | |
Ted Kremenek | 6feaf57 | 2009-12-12 00:38:18 +0000 | [diff] [blame] | 14 | // CHECK-SHORT-ENUMS: compiler does not support '-fshort-enums' |