Eric Christopher | 551ef45 | 2011-08-23 17:56:55 +0000 | [diff] [blame] | 1 | // Check that we verify debug output properly with multiple -arch options. |
| 2 | // |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 3 | // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-phases \ |
Alp Toker | e9d2bfc | 2014-01-17 02:06:23 +0000 | [diff] [blame] | 4 | // RUN: --verify-debug-info -arch i386 -arch x86_64 %s -g 2> %t |
Eric Christopher | 551ef45 | 2011-08-23 17:56:55 +0000 | [diff] [blame] | 5 | // RUN: FileCheck -check-prefix=CHECK-MULTIARCH-ACTIONS < %t %s |
| 6 | // |
| 7 | // CHECK-MULTIARCH-ACTIONS: 0: input, "{{.*}}darwin-verify-debug.c", c |
Bob Wilson | 23a55f1 | 2014-12-21 07:00:00 +0000 | [diff] [blame] | 8 | // CHECK-MULTIARCH-ACTIONS: 9: dsymutil, {8}, dSYM |
| 9 | // CHECK-MULTIARCH-ACTIONS: 10: verify-debug-info, {9}, none |
Eric Christopher | 551ef45 | 2011-08-23 17:56:55 +0000 | [diff] [blame] | 10 | // |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 11 | // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \ |
Alp Toker | e9d2bfc | 2014-01-17 02:06:23 +0000 | [diff] [blame] | 12 | // RUN: --verify-debug-info -arch i386 -arch x86_64 %s -g 2> %t |
Eric Christopher | 551ef45 | 2011-08-23 17:56:55 +0000 | [diff] [blame] | 13 | // RUN: FileCheck -check-prefix=CHECK-MULTIARCH-BINDINGS < %t %s |
| 14 | // |
| 15 | // CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["a.out"], output: "a.out.dSYM" |
| 16 | // CHECK-MULTIARCH-BINDINGS: # "x86_64-apple-darwin10" - "darwin::VerifyDebug", inputs: ["a.out.dSYM"], output: (nothing) |
| 17 | |
| 18 | // Check output name derivation. |
| 19 | // |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 20 | // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \ |
Alp Toker | e9d2bfc | 2014-01-17 02:06:23 +0000 | [diff] [blame] | 21 | // RUN: --verify-debug-info -o foo %s -g 2> %t |
Eric Christopher | 551ef45 | 2011-08-23 17:56:55 +0000 | [diff] [blame] | 22 | // RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s |
| 23 | // |
Douglas Katzman | 9535429 | 2015-06-23 20:42:09 +0000 | [diff] [blame] | 24 | // CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::Linker", inputs: [{{.*}}], output: "foo" |
Eric Christopher | 551ef45 | 2011-08-23 17:56:55 +0000 | [diff] [blame] | 25 | // CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::Dsymutil", inputs: ["foo"], output: "foo.dSYM" |
| 26 | // CHECK-OUTPUT-NAME: "x86_64-apple-darwin10" - "darwin::VerifyDebug", inputs: ["foo.dSYM"], output: (nothing) |
| 27 | |
| 28 | // Check that we only verify when needed. |
| 29 | // |
| 30 | // RUN: touch %t.o |
Sebastian Pop | 422377c | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 31 | // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \ |
Alp Toker | e9d2bfc | 2014-01-17 02:06:23 +0000 | [diff] [blame] | 32 | // RUN: --verify-debug-info -o foo %t.o -g 2> %t |
Rafael Espindola | be8a91b | 2013-07-04 15:22:16 +0000 | [diff] [blame] | 33 | // RUN: not grep "Verify" %t |