You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
680 B
13 lines
680 B
4 months ago
|
// RUN: %clang -target i386-apple-darwin9 -m32 -Xarch_i386 -O3 %s -S -### 2>&1 | FileCheck -check-prefix=O3ONCE %s
|
||
|
// O3ONCE: "-O3"
|
||
|
// O3ONCE-NOT: "-O3"
|
||
|
|
||
|
// RUN: %clang -target i386-apple-darwin9 -m64 -Xarch_i386 -O3 %s -S -### 2>&1 | FileCheck -check-prefix=O3NONE %s
|
||
|
// O3NONE-NOT: "-O3"
|
||
|
// O3NONE: argument unused during compilation: '-Xarch_i386 -O3'
|
||
|
|
||
|
// RUN: not %clang -target i386-apple-darwin9 -m32 -Xarch_i386 -o -Xarch_i386 -S %s -S -Xarch_i386 -o 2>&1 | FileCheck -check-prefix=INVALID %s
|
||
|
// INVALID: error: invalid Xarch argument: '-Xarch_i386 -o'
|
||
|
// INVALID: error: invalid Xarch argument: '-Xarch_i386 -S'
|
||
|
// INVALID: error: invalid Xarch argument: '-Xarch_i386 -o'
|