llvm-project/clang/test/PCH/objc_property.m

12 lines
319 B
Objective-C

// Test this without pch.
// RUN: clang-cc -include %S/objc_property.h -fsyntax-only -verify %s
// Test with pch.
// RUN: clang-cc -x=objective-c -emit-pch -o %t %S/objc_property.h
// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
void func() {
TestProperties *xx = [TestProperties alloc];
xx.value = 5;
}