1 // RUN: %clang -target x86_64-apple-darwin -save-temps -arch x86_64 %s -### 2>&1 \ 2 // RUN: | FileCheck %s 3 // CHECK: "-o" "save-temps.i" 4 // CHECK: "-disable-llvm-optzns" 5 // CHECK: "-o" "save-temps.bc" 6 // CHECK: "-o" "save-temps.s" 7 // CHECK: "-o" "save-temps.o" 8 // CHECK: "-o" "a.out" 9 10 // Check for a single clang cc1 invocation when NOT using -save-temps. 11 // RUN: %clang -target x86_64-apple-darwin -arch x86_64 -S %s -### 2>&1 \ 12 // RUN: | FileCheck %s -check-prefix=NO-TEMPS 13 // NO-TEMPS: "-cc1" 14 // NO-TEMPS: "-S" 15 // NO-TEMPS: "-x" "c" 16 17 // RUN: %clang -target x86_64-apple-darwin -save-temps -arch i386 -arch x86_64 %s -### 2>&1 \ 18 // RUN: | FileCheck %s -check-prefix=MULT-ARCH 19 // MULT-ARCH: "-o" "save-temps-i386.i" 20 // MULT-ARCH: "-o" "save-temps-i386.bc" 21 // MULT-ARCH: "-o" "save-temps-i386.s" 22 // MULT-ARCH: "-o" "save-temps-i386.o" 23 // MULT-ARCH: "-o" "a.out-i386" 24 // MULT-ARCH: "-o" "save-temps-x86_64.i" 25 // MULT-ARCH: "-o" "save-temps-x86_64.bc" 26 // MULT-ARCH: "-o" "save-temps-x86_64.s" 27 // MULT-ARCH: "-o" "save-temps-x86_64.o" 28 // MULT-ARCH: "-o" "a.out-x86_64" 29 // MULT-ARCH: lipo 30 // MULT-ARCH: "-create" "-output" "a.out" "a.out-i386" "a.out-x86_64" 31