llvm/test/tools/dsymutil/X86/mismatch.m
Adrian Prantl 557aebcdfa Fix this dsymutil testcase by not passing in a path to the modulemap file,
so the lookup works as expected after prepending the oso-prepend-path.

This manifested only on Windows, because "/" is not a relative path there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248423 91177308-0d34-0410-b5e6-96231b3b80d8
2015-09-23 19:53:10 +00:00

24 lines
750 B
Objective-C

/* 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 %t.bin 2>&1 | FileCheck %s
@import mismatch;
void f() {}
// CHECK: warning: hash mismatch