Changeset View
Changeset View
Standalone View
Standalone View
cfe/trunk/test/CodeGenCXX/member-function-pointers.cpp
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck -check-prefix CODE-LP64 %s | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck -check-prefix CODE-LP64 %s | ||||
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-unknown-unknown | FileCheck -check-prefix CODE-LP32 %s | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-unknown-unknown | FileCheck -check-prefix CODE-LP32 %s | ||||
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck -check-prefix GLOBAL-LP64 %s | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck -check-prefix GLOBAL-LP64 %s | ||||
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-unknown-unknown | FileCheck -check-prefix GLOBAL-LP32 %s | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-unknown-unknown | FileCheck -check-prefix GLOBAL-LP32 %s | ||||
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv7-unknown-unknown | FileCheck -check-prefix GLOBAL-ARM %s | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv7-unknown-unknown | FileCheck -check-prefix GLOBAL-ARM %s | ||||
// PNaCl uses the same representation of method pointers as ARM. | // PNaCl uses the same representation of method pointers as ARM. | ||||
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=le32-unknown-nacl | FileCheck -check-prefix GLOBAL-ARM %s | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=le32-unknown-nacl | FileCheck -check-prefix GLOBAL-ARM %s | ||||
// MIPS uses the same representation of method pointers as ARM. | // MIPS uses the same representation of method pointers as ARM. | ||||
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=mips-unknown-linux-gnu | FileCheck -check-prefix GLOBAL-ARM %s | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=mips-unknown-linux-gnu | FileCheck -check-prefix GLOBAL-ARM %s | ||||
// WebAssembly uses the same representation of method pointers as ARM. | |||||
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=wasm32-unknown-unknown | FileCheck -check-prefix GLOBAL-ARM %s | |||||
struct A { int a; void f(); virtual void vf1(); virtual void vf2(); }; | struct A { int a; void f(); virtual void vf1(); virtual void vf2(); }; | ||||
struct B { int b; virtual void g(); }; | struct B { int b; virtual void g(); }; | ||||
struct C : B, A { }; | struct C : B, A { }; | ||||
void (A::*pa)(); | void (A::*pa)(); | ||||
void (A::*volatile vpa)(); | void (A::*volatile vpa)(); | ||||
void (B::*pb)(); | void (B::*pb)(); | ||||
▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines |