forked from OSchip/llvm-project
18 lines
1.1 KiB
Mathematica
18 lines
1.1 KiB
Mathematica
// Test this without pch.
|
|
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin11 -fobjc-arc -include %S/Inputs/arc.h -fsyntax-only -emit-llvm-only %s
|
|
|
|
// Test with pch.
|
|
// RUN: %clang_cc1 -emit-pch -fblocks -triple x86_64-apple-darwin11 -fobjc-arc -x objective-c-header -o %t %S/Inputs/arc.h
|
|
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin11 -fobjc-arc -include-pch %t -fsyntax-only -emit-llvm-only %s
|
|
|
|
// Test error when pch's -fobjc-arc state is different.
|
|
// RUN: not %clang_cc1 -fblocks -triple x86_64-apple-darwin11 -include-pch %t -fsyntax-only -emit-llvm-only %s 2>&1 | FileCheck -check-prefix=CHECK-ERR1 %s
|
|
// RUN: %clang_cc1 -emit-pch -fblocks -triple x86_64-apple-darwin11 -x objective-c-header -o %t %S/Inputs/arc.h
|
|
// RUN: not %clang_cc1 -fblocks -triple x86_64-apple-darwin11 -fobjc-arc -include-pch %t -fsyntax-only -emit-llvm-only %s 2>&1 | FileCheck -check-prefix=CHECK-ERR2 %s
|
|
|
|
array0 a0;
|
|
array1 a1;
|
|
|
|
// CHECK-ERR1: Objective-C automated reference counting was enabled in PCH file but is currently disabled
|
|
// CHECK-ERR2: Objective-C automated reference counting was disabled in PCH file but is currently enabled
|