From 65a008683fb69c4c4a44229f4c147fac49fc75b4 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Thu, 10 Oct 2013 22:36:20 +0000 Subject: clang-cl: Expose the -m32 and -m64 command-line options And add a test to check that they work. llvm-svn: 192402 --- clang/test/Driver/cl-options.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/Driver/cl-options.c') 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() { } -- cgit v1.2.3