xref: /llvm-project/clang/test/PCH/objcxx-ivar-class.mm (revision 7793e676514bc102e97a993e90257e8628069a8b)
1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
2// Test this without pch.
3// RUN: %clang_cc1 -include %S/objcxx-ivar-class.h -triple %itanium_abi_triple %s -emit-llvm -o - | FileCheck %s
4
5// Test with pch.
6// RUN: %clang_cc1 -x objective-c++-header -triple %itanium_abi_triple -emit-pch -o %t %S/objcxx-ivar-class.h
7// RUN: %clang_cc1 -include-pch %t -triple %itanium_abi_triple %s -emit-llvm -o - | FileCheck %s
8
9// CHECK: [C position]
10// CHECK: call {{.*}} @_ZN1SC1ERKS_
11
12// CHECK: [C setPosition:]
13// CHECK: = call {{.*}}ptr @_ZN1SaSERKS_
14
15// CHECK: [C .cxx_destruct]
16// CHECK: [C .cxx_construct]
17