Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. FAIL: UBSan-ASan-i386 :: TestCases/TypeCheck/vptr-virtual-base.cpp (26706 of 26768) ******************** TEST 'UBSan-ASan-i386 :: TestCases/TypeCheck/vptr-virtual-base.cpp' FAILED ******************** Script: -- /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/./bin/clang --driver-mode=g++ -fsanitize=address -m32 -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -g /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp -O3 -o /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr-virtual-base.cpp.tmp not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr-virtual-base.cpp.tmp 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp -- Exit Code: 1 Command Output (stderr): -- /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp:16:17: error: expected string not found in input // CHECK-NEXT: [[PTR]]: note: object is of type 'Foo' ^ :2:1: note: scanning from here 0xbfbfeb30: note: object is of type '3Foo' ^ :2:1: note: with variable "PTR" equal to "0xbfbfeb30" 0xbfbfeb30: note: object is of type '3Foo' ^ :2:11: note: possible intended match here 0xbfbfeb30: note: object is of type '3Foo' ^ -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. FAIL: UBSan-ASan-i386 :: TestCases/TypeCheck/vptr.cpp (26708 of 26768) ******************** TEST 'UBSan-ASan-i386 :: TestCases/TypeCheck/vptr.cpp' FAILED ******************** Script: -- /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/./bin/clang --driver-mode=g++ -fsanitize=address -m32 -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -g /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp -O3 -o /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp rT && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mT && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fT && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cT /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp rU && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mU && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fU && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cU /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp rS && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp rV && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp oV env UBSAN_OPTIONS=detect_leaks=0:print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mS 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-MEMBER --check-prefix=CHECK-FreeBSD-MEMBER --strict-whitespace env UBSAN_OPTIONS=detect_leaks=0:print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fS 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-MEMFUN --strict-whitespace env UBSAN_OPTIONS=detect_leaks=0:print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cS 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-DOWNCAST --check-prefix=CHECK-FreeBSD-DOWNCAST --strict-whitespace env UBSAN_OPTIONS=detect_leaks=0:print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mV 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-MEMBER --check-prefix=CHECK-FreeBSD-MEMBER --strict-whitespace env UBSAN_OPTIONS=detect_leaks=0:print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fV 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-MEMFUN --strict-whitespace env UBSAN_OPTIONS=detect_leaks=0:print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cV 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-DOWNCAST --check-prefix=CHECK-FreeBSD-DOWNCAST --strict-whitespace env UBSAN_OPTIONS=detect_leaks=0:print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp oU 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-OFFSET --check-prefix=CHECK-FreeBSD-OFFSET --strict-whitespace env UBSAN_OPTIONS=detect_leaks=0:print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp m0 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-NULL-MEMBER --check-prefix=CHECK-FreeBSD-NULL-MEMBER --strict-whitespace (echo "vptr_check:S"; echo "vptr_check:T"; echo "vptr_check:U") > /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp env UBSAN_OPTIONS=detect_leaks=0:suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mS env UBSAN_OPTIONS=detect_leaks=0:suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fS env UBSAN_OPTIONS=detect_leaks=0:suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cS env UBSAN_OPTIONS=detect_leaks=0:suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mV env UBSAN_OPTIONS=detect_leaks=0:suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fV env UBSAN_OPTIONS=detect_leaks=0:suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cV env UBSAN_OPTIONS=detect_leaks=0:suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp oU echo "vptr_check:S" > /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.loc-supp env UBSAN_OPTIONS=detect_leaks=0:suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.loc-supp"' not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/AddressSanitizer-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp x- 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-LOC-SUPPRESS -- Exit Code: 1 Command Output (stderr): -- /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:46:12: warning: direct base 'S' is inaccessible due to ambiguity: struct U -> struct S struct U -> struct T -> struct S [-Winaccessible-base] struct U : S, T { virtual int v() { return 2; } }; ^ /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:93:9: warning: 'reinterpret_cast' from class 'U *' to its base at non-zero offset 'T *' behaves differently from 'static_cast' [-Wreinterpret-base-class] p = reinterpret_cast(new U); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:93:9: note: use 'static_cast' to adjust the pointer correctly while upcasting p = reinterpret_cast(new U); ^~~~~~~~~~~~~~~~ static_cast /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:153:12: warning: 'reinterpret_cast' to class 'U *' from its base at non-zero offset 'T *' behaves differently from 'static_cast' [-Wreinterpret-base-class] return reinterpret_cast(p)->v() - 2; ^~~~~~~~~~~~~~~~~~~~~~~ /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:153:12: note: use 'static_cast' to adjust the pointer correctly while downcasting return reinterpret_cast(p)->v() - 2; ^~~~~~~~~~~~~~~~ static_cast 3 warnings generated. Test case: rT Test case: mT Test case: fT Test case: cT Test case: rU Test case: mU Test case: fU Test case: cU Test case: rS Test case: rV Test case: oV /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:123:27: error: expected string not found in input // CHECK-MEMBER-NEXT: [[PTR]]: note: object is of type [[DYN_TYPE:'S'|'U']] ^ :3:1: note: scanning from here 0xbfbfeb30: note: object is of type '1S' ^ :3:1: note: with variable "PTR" equal to "0xbfbfeb30" 0xbfbfeb30: note: object is of type '1S' ^ :3:11: note: possible intended match here 0xbfbfeb30: note: object is of type '1S' ^ -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. FAIL: UBSan-Standalone-i386 :: TestCases/TypeCheck/vptr-virtual-base.cpp (26741 of 26768) ******************** TEST 'UBSan-Standalone-i386 :: TestCases/TypeCheck/vptr-virtual-base.cpp' FAILED ******************** Script: -- /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/./bin/clang --driver-mode=g++ -m32 -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -g /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp -O3 -o /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr-virtual-base.cpp.tmp not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr-virtual-base.cpp.tmp 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp -- Exit Code: 1 Command Output (stderr): -- /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp:16:17: error: expected string not found in input // CHECK-NEXT: [[PTR]]: note: object is of type 'Foo' ^ :2:1: note: scanning from here 0xbfbfebb8: note: object is of type '3Foo' ^ :2:1: note: with variable "PTR" equal to "0xbfbfebb8" 0xbfbfebb8: note: object is of type '3Foo' ^ :2:11: note: possible intended match here 0xbfbfebb8: note: object is of type '3Foo' ^ -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. FAIL: UBSan-Standalone-i386 :: TestCases/TypeCheck/vptr.cpp (26766 of 26768) ******************** TEST 'UBSan-Standalone-i386 :: TestCases/TypeCheck/vptr.cpp' FAILED ******************** Script: -- /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/./bin/clang --driver-mode=g++ -m32 -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -g /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp -O3 -o /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp rT && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mT && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fT && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cT /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp rU && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mU && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fU && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cU /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp rS && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp rV && /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp oV env UBSAN_OPTIONS=print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mS 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-MEMBER --check-prefix=CHECK-FreeBSD-MEMBER --strict-whitespace env UBSAN_OPTIONS=print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fS 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-MEMFUN --strict-whitespace env UBSAN_OPTIONS=print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cS 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-DOWNCAST --check-prefix=CHECK-FreeBSD-DOWNCAST --strict-whitespace env UBSAN_OPTIONS=print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mV 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-MEMBER --check-prefix=CHECK-FreeBSD-MEMBER --strict-whitespace env UBSAN_OPTIONS=print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fV 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-MEMFUN --strict-whitespace env UBSAN_OPTIONS=print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cV 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-DOWNCAST --check-prefix=CHECK-FreeBSD-DOWNCAST --strict-whitespace env UBSAN_OPTIONS=print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp oU 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-OFFSET --check-prefix=CHECK-FreeBSD-OFFSET --strict-whitespace env UBSAN_OPTIONS=print_stacktrace=1 not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp m0 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-NULL-MEMBER --check-prefix=CHECK-FreeBSD-NULL-MEMBER --strict-whitespace (echo "vptr_check:S"; echo "vptr_check:T"; echo "vptr_check:U") > /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp env UBSAN_OPTIONS=suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mS env UBSAN_OPTIONS=suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fS env UBSAN_OPTIONS=suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cS env UBSAN_OPTIONS=suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp mV env UBSAN_OPTIONS=suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp fV env UBSAN_OPTIONS=suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp cV env UBSAN_OPTIONS=suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.supp"' /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp oU echo "vptr_check:S" > /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.loc-supp env UBSAN_OPTIONS=suppressions='"/home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp.loc-supp"' not /home/dim/obj/llvm-268169-trunk-freebsd11-i386-ninja-rel-1/projects/compiler-rt/test/ubsan/Standalone-i386/TestCases/TypeCheck/Output/vptr.cpp.tmp x- 2>&1 | FileCheck /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp --check-prefix=CHECK-LOC-SUPPRESS -- Exit Code: 1 Command Output (stderr): -- /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:46:12: warning: direct base 'S' is inaccessible due to ambiguity: struct U -> struct S struct U -> struct T -> struct S [-Winaccessible-base] struct U : S, T { virtual int v() { return 2; } }; ^ /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:93:9: warning: 'reinterpret_cast' from class 'U *' to its base at non-zero offset 'T *' behaves differently from 'static_cast' [-Wreinterpret-base-class] p = reinterpret_cast(new U); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:93:9: note: use 'static_cast' to adjust the pointer correctly while upcasting p = reinterpret_cast(new U); ^~~~~~~~~~~~~~~~ static_cast /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:153:12: warning: 'reinterpret_cast' to class 'U *' from its base at non-zero offset 'T *' behaves differently from 'static_cast' [-Wreinterpret-base-class] return reinterpret_cast(p)->v() - 2; ^~~~~~~~~~~~~~~~~~~~~~~ /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:153:12: note: use 'static_cast' to adjust the pointer correctly while downcasting return reinterpret_cast(p)->v() - 2; ^~~~~~~~~~~~~~~~ static_cast 3 warnings generated. Test case: rT Test case: mT Test case: fT Test case: cT Test case: rU Test case: mU Test case: fU Test case: cU Test case: rS Test case: rV Test case: oV /share/dim/src/llvm/trunk/projects/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp:123:27: error: expected string not found in input // CHECK-MEMBER-NEXT: [[PTR]]: note: object is of type [[DYN_TYPE:'S'|'U']] ^ :3:1: note: scanning from here 0xbfbfebd8: note: object is of type '1S' ^ :3:1: note: with variable "PTR" equal to "0xbfbfebd8" 0xbfbfebd8: note: object is of type '1S' ^ :3:11: note: possible intended match here 0xbfbfebd8: note: object is of type '1S' ^ -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 707.81s ******************** Failing Tests (5): AddressSanitizer-i386-freebsd :: TestCases/use-after-scope-capture.cc UBSan-ASan-i386 :: TestCases/TypeCheck/vptr-virtual-base.cpp UBSan-ASan-i386 :: TestCases/TypeCheck/vptr.cpp UBSan-Standalone-i386 :: TestCases/TypeCheck/vptr-virtual-base.cpp UBSan-Standalone-i386 :: TestCases/TypeCheck/vptr.cpp Expected Passes : 24204 Expected Failures : 152 Unsupported Tests : 2407 Unexpected Failures: 5