blob: 7aecbac49c2fcb6aa36e48786eee53a1d0f7810a [file] [log] [blame]
Daniel Dunbard4510f22009-04-07 23:51:44 +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> %t &&
2// RUN: grep -F '"-fblocks"' %t &&
3// RUN: grep -F '"--fmath-errno=1"' %t &&
4// RUN: grep -F '"-fpascal-strings"' %t &&
John Thompsoned4e2952009-11-05 20:14:16 +00005// 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> %t &&
Daniel Dunbard4510f22009-04-07 23:51:44 +00006// RUN: grep -F '"-fblocks=0"' %t &&
7// RUN: grep -F '"-fbuiltin=0"' %t &&
8// RUN: grep -F '"-fno-common"' %t &&
9// RUN: grep -F '"--fmath-errno=0"' %t &&
Daniel Dunbardb097022009-06-08 21:13:54 +000010// RUN: grep -F '"-fno-show-source-location"' %t &&
John Thompsoned4e2952009-11-05 20:14:16 +000011// RUN: grep -F '"-fshort-wchar"' %t &&
Daniel Dunbard4510f22009-04-07 23:51:44 +000012// RUN: true