blob: 0025297b3329450de9b7f2e820d8f650c1e7cac1 [file] [log] [blame]
Rafael Espindola925213b2013-07-04 16:16:58 +00001// RUN: not %clang -ObjC -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
2// RUN: not %clang -x objective-c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
3// RUN: not %clang -x objective-c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
4// RUN: not %clang -x c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
5// RUN: not %clang -x c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
Greg Parker084f2312016-04-02 05:29:00 +00006// RUN: not %clang -x objective-c -target x86_64-apple-darwin11 -mmacosx-version-min=10.5 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTSUPPORTED %s
John McCall31168b02011-06-15 23:02:42 +00007
8// Just to test clang is working.
9# foo
10
John McCall3deb1ad2012-08-21 02:47:43 +000011// CHECK: error: -fobjc-arc is not supported on platforms using the legacy runtime
John McCall31168b02011-06-15 23:02:42 +000012// CHECK-NOT: invalid preprocessing directive
13
John McCall3deb1ad2012-08-21 02:47:43 +000014// NOTOBJC-NOT: error: -fobjc-arc is not supported on platforms using the legacy runtime
John McCall31168b02011-06-15 23:02:42 +000015// NOTOBJC: invalid preprocessing directive
Argyrios Kyrtzidis3dbeb552012-02-29 03:43:52 +000016
Greg Parker084f2312016-04-02 05:29:00 +000017// NOTSUPPORTED: error: -fobjc-arc is not supported on versions of OS X prior to 10.6