diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-10-10 22:36:20 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-10-10 22:36:20 +0000 |
commit | 65a008683fb69c4c4a44229f4c147fac49fc75b4 (patch) | |
tree | 72b8c13638191028fe72310ab463c95722cdf141 /clang/test/Driver/cl-options.c | |
parent | b916e8467223ee18518e69acc0df4f669e24dc4d (diff) | |
download | bcm5719-llvm-65a008683fb69c4c4a44229f4c147fac49fc75b4.tar.gz bcm5719-llvm-65a008683fb69c4c4a44229f4c147fac49fc75b4.zip |
clang-cl: Expose the -m32 and -m64 command-line options
And add a test to check that they work.
llvm-svn: 192402
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r-- | clang/test/Driver/cl-options.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 16efae4e928..20018b085bd 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -129,4 +129,11 @@ // Xclang: "-cc1" // Xclang: "hellocc1" +// We support -m32 and -m64. +// RUN: %clang_cl -Xclang -target -Xclang x86_64-pc-win32 -m32 -### -- %s 2>&1 | FileCheck -check-prefix=M32 %s +// M32: "-triple" "i{{[0-9]}}86-{{.*}}" +// RUN: %clang_cl -Xclang -target -Xclang i386-pc-win32 -m64 -### -- %s 2>&1 | FileCheck -check-prefix=M64 %s +// M64: "-triple" "{{[^-]+}}64-{{.*}}" + + void f() { } |