diff options
Diffstat (limited to 'test/Driver/clang_f_opts.c')
-rw-r--r-- | test/Driver/clang_f_opts.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Driver/clang_f_opts.c b/test/Driver/clang_f_opts.c new file mode 100644 index 0000000..9dc8f63 --- /dev/null +++ b/test/Driver/clang_f_opts.c @@ -0,0 +1,10 @@ +// 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> %t && +// RUN: grep -F '"-fblocks"' %t && +// RUN: grep -F '"--fmath-errno=1"' %t && +// RUN: grep -F '"-fpascal-strings"' %t && +// 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 %s 2> %t && +// RUN: grep -F '"-fblocks=0"' %t && +// RUN: grep -F '"-fbuiltin=0"' %t && +// RUN: grep -F '"-fno-common"' %t && +// RUN: grep -F '"--fmath-errno=0"' %t && +// RUN: true |