Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGenCXX/pr27030.cpp @ 206:f17a3b42b08b
Added tag before-12 for changeset b7591485f4cd
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 07 Jun 2021 21:25:57 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
// RUN: %clang_cc1 -emit-llvm -triple=i386-pc-win32 %s -o - | FileCheck %s struct A {}; struct B : A {}; extern "C" { extern int B::*a; void test1() { (int A::*)(a); } } // CHECK-LABEL: define dso_local void @test1( // CHECK: %[[load:.*]] = load i32, i32* @a // CHECK: %[[memptr_cmp:.*]] = icmp ne i32 %[[load]], -1 // CHECK: br i1 %[[memptr_cmp]] // CHECK: %[[adj:.*]] = sub nsw i32 %[[load]], 0 // CHECK: %[[nv_adj:.*]] = select i1 true, i32 %[[adj]], i32 0 // CHECK: %[[memptr_converted:.*]] = phi i32 [ -1, {{.*}} ], [ %[[nv_adj]], {{.*}} ]