1 // RUN: %clang_cc1 -triple x86_64-linux -std=c++98 %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call "
2 // RUN: %clang_cc1 -triple x86_64-linux -std=c++11 %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call "
3 // RUN: %clang_cc1 -triple x86_64-linux -std=c++14 %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call "
4 // RUN: %clang_cc1 -triple x86_64-linux -std=c++1z %s -pedantic-errors -emit-llvm -o - | FileCheck %s --implicit-check-not " call "
13 // CHECK-LABEL: define {{.*}} @_Z1g
16 sp
->f(); // 1: polymorphic
18 sp
->S::f(); // 2: non-polymorphic
20 (sp
->S::f
)(); // 3: non-polymorphic
22 (sp
->*pmf
)(); // 4: polymorphic
24 (sp
->*&S::f
)(); // 5: polymorphic