xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/warning-options.cpp (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 // RUN: %clang -### -Wlarge-by-value-copy %s 2>&1 | FileCheck -check-prefix=LARGE_VALUE_COPY_DEFAULT %s
2 // LARGE_VALUE_COPY_DEFAULT: -Wlarge-by-value-copy=64
3 // RUN: %clang -### -Wlarge-by-value-copy=128 %s 2>&1 | FileCheck -check-prefix=LARGE_VALUE_COPY_JOINED %s
4 // LARGE_VALUE_COPY_JOINED: -Wlarge-by-value-copy=128
5 
6 // FIXME: Remove this together with -Warc-abi once an Xcode is released that doesn't pass this flag.
7 // RUN: %clang -### -Warc-abi -Wno-arc-abi %s 2>&1 | FileCheck -check-prefix=ARCABI %s
8 // ARCABI-NOT: unknown warning option '-Warc-abi'
9 // ARCABI-NOT: unknown warning option '-Wno-arc-abi'
10 
11 // Check that -isysroot warns on nonexistent paths.
12 // RUN: %clang -### -c -target i386-apple-darwin10 -isysroot /FOO %s 2>&1 | FileCheck --check-prefix=CHECK-ISYSROOT %s
13 // CHECK-ISYSROOT: warning: no such sysroot directory: '{{([A-Za-z]:.*)?}}/FOO'
14