2012-02-29 11:43:52 +08:00
|
|
|
// RUN: %clang -ObjC -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -x objective-c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -x objective-c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -x c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
|
|
|
|
// RUN: %clang -x c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
|
|
|
|
// 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
|
2011-06-16 07:02:42 +08:00
|
|
|
|
|
|
|
// Just to test clang is working.
|
|
|
|
# foo
|
|
|
|
|
2012-08-21 10:47:43 +08:00
|
|
|
// CHECK: error: -fobjc-arc is not supported on platforms using the legacy runtime
|
2011-06-16 07:02:42 +08:00
|
|
|
// CHECK-NOT: invalid preprocessing directive
|
|
|
|
|
2012-08-21 10:47:43 +08:00
|
|
|
// NOTOBJC-NOT: error: -fobjc-arc is not supported on platforms using the legacy runtime
|
2011-06-16 07:02:42 +08:00
|
|
|
// NOTOBJC: invalid preprocessing directive
|
2012-02-29 11:43:52 +08:00
|
|
|
|
2012-08-27 09:56:21 +08:00
|
|
|
// UNSUPPORTED: error: -fobjc-arc is not supported on versions of OS X prior to 10.6
|