blob: 5a5720c04aee17a39b32e0b6ee7ccd37c731cc48 [file] [log] [blame]
Argyrios Kyrtzidis5840dd92012-02-29 03:43:52 +00001// RUN: %clang -ObjC -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
2// RUN: %clang -x objective-c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
3// RUN: %clang -x objective-c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
4// RUN: %clang -x c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
5// RUN: %clang -x c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
6// RUN: %clang -x objective-c -target x86_64-apple-darwin11 -mmacosx-version-min=10.5 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix UNSUPPORTED %s
John McCallf85e1932011-06-15 23:02:42 +00007
8// Just to test clang is working.
9# foo
10
Fariborz Jahaniand57aa882012-07-09 17:54:36 +000011// CHECK: error: -fobjc-arc is not supported with legacy abi
John McCallf85e1932011-06-15 23:02:42 +000012// CHECK-NOT: invalid preprocessing directive
13
Fariborz Jahaniand57aa882012-07-09 17:54:36 +000014// NOTOBJC-NOT: error: -fobjc-arc is not supported with legacy abi
John McCallf85e1932011-06-15 23:02:42 +000015// NOTOBJC: invalid preprocessing directive
Argyrios Kyrtzidis5840dd92012-02-29 03:43:52 +000016
17// UNSUPPORTED: error: -fobjc-arc is not supported on current deployment target