diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/tools/dsymutil/Inputs/mismatch/1.o | bin | 0 -> 1980 bytes | |||
| -rw-r--r-- | llvm/test/tools/dsymutil/Inputs/mismatch/mismatch.pcm | bin | 0 -> 24940 bytes | |||
| -rw-r--r-- | llvm/test/tools/dsymutil/Inputs/modules/1.o | bin | 2392 -> 2392 bytes | |||
| -rw-r--r-- | llvm/test/tools/dsymutil/Inputs/modules/Bar.pcm | bin | 25520 -> 25532 bytes | |||
| -rw-r--r-- | llvm/test/tools/dsymutil/Inputs/modules/Foo.pcm | bin | 25448 -> 25464 bytes | |||
| -rw-r--r-- | llvm/test/tools/dsymutil/X86/mismatch.m | 23 | ||||
| -rw-r--r-- | llvm/test/tools/dsymutil/X86/modules.m | 7 |
7 files changed, 29 insertions, 1 deletions
diff --git a/llvm/test/tools/dsymutil/Inputs/mismatch/1.o b/llvm/test/tools/dsymutil/Inputs/mismatch/1.o Binary files differnew file mode 100644 index 00000000000..45d176c96be --- /dev/null +++ b/llvm/test/tools/dsymutil/Inputs/mismatch/1.o diff --git a/llvm/test/tools/dsymutil/Inputs/mismatch/mismatch.pcm b/llvm/test/tools/dsymutil/Inputs/mismatch/mismatch.pcm Binary files differnew file mode 100644 index 00000000000..94f3cf5fffb --- /dev/null +++ b/llvm/test/tools/dsymutil/Inputs/mismatch/mismatch.pcm diff --git a/llvm/test/tools/dsymutil/Inputs/modules/1.o b/llvm/test/tools/dsymutil/Inputs/modules/1.o Binary files differindex 6e0775f5755..254ae692a8e 100644 --- a/llvm/test/tools/dsymutil/Inputs/modules/1.o +++ b/llvm/test/tools/dsymutil/Inputs/modules/1.o diff --git a/llvm/test/tools/dsymutil/Inputs/modules/Bar.pcm b/llvm/test/tools/dsymutil/Inputs/modules/Bar.pcm Binary files differindex 8b628e3cf01..8d3a534667c 100644 --- a/llvm/test/tools/dsymutil/Inputs/modules/Bar.pcm +++ b/llvm/test/tools/dsymutil/Inputs/modules/Bar.pcm diff --git a/llvm/test/tools/dsymutil/Inputs/modules/Foo.pcm b/llvm/test/tools/dsymutil/Inputs/modules/Foo.pcm Binary files differindex 2416a405443..33bca2a6547 100644 --- a/llvm/test/tools/dsymutil/Inputs/modules/Foo.pcm +++ b/llvm/test/tools/dsymutil/Inputs/modules/Foo.pcm diff --git a/llvm/test/tools/dsymutil/X86/mismatch.m b/llvm/test/tools/dsymutil/X86/mismatch.m new file mode 100644 index 00000000000..cd40cba4919 --- /dev/null +++ b/llvm/test/tools/dsymutil/X86/mismatch.m @@ -0,0 +1,23 @@ +/* Compile with: + cat >modules.modulemap <<EOF + module mismatch { + header "mismatch.h" + } + EOF + echo "struct s;"> mismatch.h + clang -cc1 -emit-obj -fmodules -fmodule-map-file=modules.modulemap \ + -fmodule-format=obj -g -dwarf-ext-refs -fmodules-cache-path=. \ + -fdisable-module-hash mismatch.m -o 1.o + echo > mismatch.h + clang -cc1 -emit-obj -fmodules -fmodule-map-file=modules.modulemap \ + -fmodule-format=obj -g -dwarf-ext-refs -fmodules-cache-path=. \ + -fdisable-module-hash mismatch.m -o /dev/null +*/ + +// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/mismatch \ +// RUN: -y %p/dummy-debug-map.map -o - 2>&1 | FileCheck %s + +@import mismatch; + +void f() {} +// CHECK: warning: hash mismatch diff --git a/llvm/test/tools/dsymutil/X86/modules.m b/llvm/test/tools/dsymutil/X86/modules.m index 6a93f28587a..c17e1632b95 100644 --- a/llvm/test/tools/dsymutil/X86/modules.m +++ b/llvm/test/tools/dsymutil/X86/modules.m @@ -20,6 +20,11 @@ // RUN: -y %p/dummy-debug-map.map -o - \ // RUN: | llvm-dwarfdump --debug-dump=info - | FileCheck %s +// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/modules -y \ +// RUN: %p/dummy-debug-map.map -o %t 2>&1 | FileCheck --check-prefix=WARN %s + +// WARN-NOT: warning: hash mismatch + // --------------------------------------------------------------------- #ifdef BAR_H // --------------------------------------------------------------------- @@ -37,7 +42,7 @@ struct Bar { // --------------------------------------------------------------------- #ifdef FOO_H // --------------------------------------------------------------------- -// CHECK: 55{{.*}}DW_TAG_compile_unit +// CHECK: DW_TAG_compile_unit // CHECK: DW_TAG_module // CHECK-NEXT: DW_AT_name {{.*}}"Foo" // CHECK: DW_TAG_typedef |

