1 // RUN: %clang_cc1 -std=c++11 -fsanitize=vptr -emit-llvm %s -o - -triple wasm32-unknown-emscripten | FileCheck %s
12 // CHECK-LABEL: @_Z15bad_static_castv
13 void bad_static_cast() {
15 // CHECK: br i1 %[[NONNULL:.*]], label %[[CONT:.*]], label %[[MISS:.*]], !prof
17 // CHECK: call void @__ubsan_handle_dynamic_type_cache_miss_abort
19 T
&r
= static_cast<T
&>(s
);