1// Make sure -mthumb does not affect assembler triple, but -Wa,-mthumb or
2// -Xassembler -mthumb does. Also check that -Wa,-mthumb or -Xassembler -mthumb
3// does not affect non assembler files.
4
5// RUN: %clang -target armv7a-linux-gnueabi -### -c -mthumb %s 2>&1 | \
6// RUN: FileCheck -check-prefix=TRIPLE-ARM %s
7// RUN: %clang -target armv7a-linux-gnueabi -### -c -Wa,-mthumb \
8// RUN: %S/Inputs/wildcard1.c  2>&1 | FileCheck -check-prefix=TRIPLE-ARM %s
9
10// TRIPLE-ARM: "-triple" "armv7-unknown-linux-gnueabi"
11
12// RUN: %clang -target armv7a-linux-gnueabi -### -c -Wa,-mthumb %s 2>&1 | \
13// RUN: FileCheck -check-prefix=TRIPLE-THUMB %s
14// RUN: %clang -target armv7a-linux-gnueabi -### -c -Xassembler -mthumb %s \
15// RUN: 2>&1 | FileCheck -check-prefix=TRIPLE-THUMB %s
16
17// TRIPLE-THUMB: "-triple" "thumbv7-unknown-linux-gnueabi"
18