xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/arc.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: not %clang -ObjC -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
2*f4a2713aSLionel Sambuc // RUN: not %clang -x objective-c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
3*f4a2713aSLionel Sambuc // RUN: not %clang -x objective-c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
4*f4a2713aSLionel Sambuc // RUN: not %clang -x c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
5*f4a2713aSLionel Sambuc // RUN: not %clang -x c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
6*f4a2713aSLionel Sambuc // 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 UNSUPPORTED %s
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc // Just to test clang is working.
9*f4a2713aSLionel Sambuc # foo
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc // CHECK: error: -fobjc-arc is not supported on platforms using the legacy runtime
12*f4a2713aSLionel Sambuc // CHECK-NOT: invalid preprocessing directive
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc // NOTOBJC-NOT: error: -fobjc-arc is not supported on platforms using the legacy runtime
15*f4a2713aSLionel Sambuc // NOTOBJC: invalid preprocessing directive
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc // UNSUPPORTED: error: -fobjc-arc is not supported on versions of OS X prior to 10.6
18