annotate clang/test/Driver/compress.c @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: zlib
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // RUN: %clang -### -fintegrated-as -Wa,-compress-debug-sections -c %s 2>&1 | FileCheck -check-prefix CHECK-_COMPRESS_DEBUG_SECTIONS %s
anatofuz
parents:
diff changeset
4 // CHECK-_COMPRESS_DEBUG_SECTIONS: "-compress-debug-sections"
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 // RUN: %clang -### -fintegrated-as -Wa,--compress-debug-sections -c %s 2>&1 | FileCheck -check-prefix CHECK-__COMPRESS_DEBUG_SECTIONS %s
anatofuz
parents:
diff changeset
7 // CHECK-__COMPRESS_DEBUG_SECTIONS: "--compress-debug-sections"
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // RUN: %clang -### -fintegrated-as -Wa,--compress-debug-sections -Wa,--nocompress-debug-sections -c %s 2>&1 | FileCheck -check-prefix CHECK-POSNEG %s
anatofuz
parents:
diff changeset
10 // CHECK-POSNEG: "--compress-debug-sections"
anatofuz
parents:
diff changeset
11 // CHECK-POSNEG: "--nocompress-debug-sections"
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 // RUN: %clang -### -fintegrated-as -Wa,-compress-debug-sections -Wa,--compress-debug-sections -c %s 2>&1 | FileCheck -check-prefix CHECK-MULTIPLE %s
anatofuz
parents:
diff changeset
14 // CHECK-MULTIPLE: "-compress-debug-sections"
anatofuz
parents:
diff changeset
15 // CHECK-MULTIPLE: "--compress-debug-sections"
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 // RUN: %clang -### -fintegrated-as -gz -x assembler -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ %s
anatofuz
parents:
diff changeset
18 // RUN: %clang -### -fintegrated-as -gz -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ %s
anatofuz
parents:
diff changeset
19 // CHECK-OPT_GZ: "--compress-debug-sections"
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // RUN: %clang -### -fintegrated-as -gz=none -x assembler -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_NONE %s
anatofuz
parents:
diff changeset
22 // RUN: %clang -### -fintegrated-as -gz=none -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_NONE %s
anatofuz
parents:
diff changeset
23 // CHECK-OPT_GZ_EQ_NONE: "--compress-debug-sections=none"
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 // RUN: %clang -### -fintegrated-as -gz=zlib -x assembler -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_ZLIB %s
anatofuz
parents:
diff changeset
26 // RUN: %clang -### -fintegrated-as -gz=zlib -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_ZLIB %s
anatofuz
parents:
diff changeset
27 // CHECK-OPT_GZ_EQ_ZLIB: "--compress-debug-sections=zlib"
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 // RUN: %clang -### -fintegrated-as -gz=zlib-gnu -x assembler -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_ZLIB_GNU %s
anatofuz
parents:
diff changeset
30 // RUN: %clang -### -fintegrated-as -gz=zlib-gnu -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_ZLIB_GNU %s
anatofuz
parents:
diff changeset
31 // CHECK-OPT_GZ_EQ_ZLIB_GNU: "--compress-debug-sections=zlib-gnu"
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 // RUN: %clang -### -fintegrated-as -gz=invalid -x assembler -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_INVALID %s
anatofuz
parents:
diff changeset
34 // RUN: %clang -### -fintegrated-as -gz=invalid -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_INVALID %s
anatofuz
parents:
diff changeset
35 // CHECK-OPT_GZ_EQ_INVALID: error: unsupported argument 'invalid' to option 'gz='
anatofuz
parents:
diff changeset
36