1f4a2713aSLionel Sambuc // Check that we verify debug output properly with multiple -arch options. 2f4a2713aSLionel Sambuc // 3f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-phases \ 4*0a6a1f1dSLionel Sambuc // RUN: --verify-debug-info -arch i386 -arch x86_64 %s -g 2> %t 5f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix=CHECK-MULTIARCH-ACTIONS < %t %s 6f4a2713aSLionel Sambuc // 7f4a2713aSLionel Sambuc // CHECK-MULTIARCH-ACTIONS: 0: input, "{{.*}}darwin-verify-debug.c", c 8*0a6a1f1dSLionel Sambuc // CHECK-MULTIARCH-ACTIONS: 9: dsymutil, {8}, dSYM 9*0a6a1f1dSLionel Sambuc // CHECK-MULTIARCH-ACTIONS: 10: verify-debug-info, {9}, none 10f4a2713aSLionel Sambuc // 11f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \ 12*0a6a1f1dSLionel Sambuc // RUN: --verify-debug-info -arch i386 -arch x86_64 %s -g 2> %t 13f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix=CHECK-MULTIARCH-BINDINGS < %t %s 14f4a2713aSLionel Sambuc // 15f4a2713aSLionel Sambuc // CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["a.out"], output: "a.out.dSYM" 16f4a2713aSLionel Sambuc // CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin10" - "darwin::VerifyDebug", inputs: ["a.out.dSYM"], output: (nothing) 17f4a2713aSLionel Sambuc 18f4a2713aSLionel Sambuc // Check output name derivation. 19f4a2713aSLionel Sambuc // 20f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \ 21*0a6a1f1dSLionel Sambuc // RUN: --verify-debug-info -o foo %s -g 2> %t 22f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s 23f4a2713aSLionel Sambuc // 24f4a2713aSLionel Sambuc // CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::Link", inputs: [{{.*}}], output: "foo" 25f4a2713aSLionel Sambuc // CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["foo"], output: "foo.dSYM" 26f4a2713aSLionel Sambuc // CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::VerifyDebug", inputs: ["foo.dSYM"], output: (nothing) 27f4a2713aSLionel Sambuc 28f4a2713aSLionel Sambuc // Check that we only verify when needed. 29f4a2713aSLionel Sambuc // 30f4a2713aSLionel Sambuc // RUN: touch %t.o 31f4a2713aSLionel Sambuc // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \ 32*0a6a1f1dSLionel Sambuc // RUN: --verify-debug-info -o foo %t.o -g 2> %t 33f4a2713aSLionel Sambuc // RUN: not grep "Verify" %t 34