// Test that correct vtable ptr and type metadata are passed to llvm.type.test
// Related to Bugzilla 43390.
// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-linux -fvisibility hidden -std=c++11 -fsanitize=cfi-nvcall -emit-llvm -o - %s | FileCheck %s
;
;
;
// CHECK-LABEL: define hidden noundef i32 @_Z3foov
int