xref: /aosp_15_r20/external/clang/test/Driver/no-integrated-as-win.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang -target x86_64-pc-win32 -### -no-integrated-as %s -c 2>&1 | FileCheck %s
2*67e74705SXin Li // CHECK: there is no external assembler that can be used on this platform
3*67e74705SXin Li 
4*67e74705SXin Li // But there is for mingw.  The source file should only be mentioned once for
5*67e74705SXin Li // the compile step.
6*67e74705SXin Li // RUN: %clang -target i686-pc-mingw32 -### -no-integrated-as %s -c 2>&1 | FileCheck -check-prefix=MINGW %s
7*67e74705SXin Li // MINGW: "-cc1"
8*67e74705SXin Li // MINGW: "-main-file-name" "no-integrated-as-win.c"
9*67e74705SXin Li // MINGW: "-x" "c" "{{.*}}no-integrated-as-win.c"
10*67e74705SXin Li // The assembler goes here, but its name depends on PATH.
11*67e74705SXin Li // MINGW-NOT: no-integrated-as-win.c
12