2011-08-24 01:56:55 +08:00
|
|
|
// Check that we verify debug output properly with multiple -arch options.
|
|
|
|
//
|
2011-08-24 05:47:58 +08:00
|
|
|
// REQUIRES: asserts
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-phases \
|
2011-08-24 01:56:55 +08:00
|
|
|
// RUN: -verify -arch i386 -arch x86_64 %s -g 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-ACTIONS < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 0: input, "{{.*}}darwin-verify-debug.c", c
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 8: dsymutil, {7}, dSYM
|
|
|
|
// CHECK-MULTIARCH-ACTIONS: 9: verify, {8}, none
|
|
|
|
//
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
2011-08-24 01:56:55 +08:00
|
|
|
// RUN: -verify -arch i386 -arch x86_64 %s -g 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-BINDINGS < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["a.out"], output: "a.out.dSYM"
|
|
|
|
// CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin10" - "darwin::VerifyDebug", inputs: ["a.out.dSYM"], output: (nothing)
|
|
|
|
|
|
|
|
// Check output name derivation.
|
|
|
|
//
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
2011-08-24 01:56:55 +08:00
|
|
|
// RUN: -verify -o foo %s -g 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::Link", inputs: [{{.*}}], output: "foo"
|
|
|
|
// CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["foo"], output: "foo.dSYM"
|
|
|
|
// CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::VerifyDebug", inputs: ["foo.dSYM"], output: (nothing)
|
|
|
|
|
|
|
|
// Check that we only verify when needed.
|
|
|
|
//
|
|
|
|
// RUN: touch %t.o
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
2011-08-24 01:56:55 +08:00
|
|
|
// RUN: -verify -o foo %t.o -g 2> %t
|
2013-07-04 23:22:16 +08:00
|
|
|
// RUN: not grep "Verify" %t
|