reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | // RUN: %clang_cc1 -triple x86_64-linux -std=c++98 %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call " // RUN: %clang_cc1 -triple x86_64-linux -std=c++11 %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call " // RUN: %clang_cc1 -triple x86_64-linux -std=c++14 %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call " // RUN: %clang_cc1 -triple x86_64-linux -std=c++1z %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call " // dr118: yes struct S { virtual void f(); }; void (S::*pmf)(); // CHECK-LABEL: define {{.*}} @_Z1g void g(S *sp) { // CHECK: call void % sp->f(); // 1: polymorphic // CHECK: call void @ sp->S::f(); // 2: non-polymorphic // CHECK: call void @ (sp->S::f)(); // 3: non-polymorphic // CHECK: call void % (sp->*pmf)(); // 4: polymorphic // CHECK: call void % (sp->*&S::f)(); // 5: polymorphic } |