diff options
Diffstat (limited to 'clang/test/Driver/default-toolchain.c')
-rw-r--r-- | clang/test/Driver/default-toolchain.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Driver/default-toolchain.c b/clang/test/Driver/default-toolchain.c new file mode 100644 index 0000000..b9111a6 --- /dev/null +++ b/clang/test/Driver/default-toolchain.c @@ -0,0 +1,8 @@ +// RUN: %clang -target i386-unknown-unknown -m64 -v 2> %t +// RUN: grep 'Target: x86_64-unknown-unknown' %t + +// RUN: %clang -target i386-apple-darwin9 -arch ppc -m64 -v 2> %t +// RUN: grep 'Target: powerpc64-apple-darwin9' %t + +// RUN: %clang -target i386-apple-darwin9 -arch ppc64 -m32 -v 2> %t +// RUN: grep 'Target: powerpc-apple-darwin9' %t |