34 lines · c
1// Check that we verify debug output properly with multiple -arch options.2//3// RUN: %clang -target x86_64-apple-darwin11 -ccc-print-phases \4// RUN: --verify-debug-info -arch i386 -arch x86_64 %s -g 2> %t5// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-ACTIONS < %t %s6//7// CHECK-MULTIARCH-ACTIONS: 0: input, "{{.*}}darwin-verify-debug.c", c8// CHECK-MULTIARCH-ACTIONS: 9: dsymutil, {8}, dSYM9// CHECK-MULTIARCH-ACTIONS: 10: verify-debug-info, {9}, none10//11// RUN: %clang -target x86_64-apple-darwin11 -ccc-print-bindings \12// RUN: --verify-debug-info -arch i386 -arch x86_64 %s -g 2> %t13// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-BINDINGS < %t %s14//15// CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin11" - "darwin::Dsymutil", inputs: ["a.out"], output: "a.out.dSYM"16// CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin11" - "darwin::VerifyDebug", inputs: ["a.out.dSYM"], output: (nothing)17 18// Check output name derivation.19//20// RUN: %clang -target x86_64-apple-darwin11 -ccc-print-bindings \21// RUN: --verify-debug-info -o foo %s -g 2> %t22// RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s23//24// CHECK-OUTPUT-NAME: "x86_64-apple-darwin11" - "darwin::Linker", inputs: [{{.*}}], output: "foo"25// CHECK-OUTPUT-NAME: "x86_64-apple-darwin11" - "darwin::Dsymutil", inputs: ["foo"], output: "foo.dSYM"26// CHECK-OUTPUT-NAME: "x86_64-apple-darwin11" - "darwin::VerifyDebug", inputs: ["foo.dSYM"], output: (nothing)27 28// Check that we only verify when needed.29//30// RUN: touch %t.o31// RUN: %clang -target x86_64-apple-darwin11 -ccc-print-bindings \32// RUN: --verify-debug-info -o foo %t.o -g 2> %t33// RUN: not grep "Verify" %t34