2022-08-05 13:49:39 -04:00
|
|
|
// RUN: not %clang -ObjC -target i386-apple-darwin10 -stdlib=libstdc++ -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
|
|
|
// RUN: not %clang -x objective-c -target i386-apple-darwin10 -stdlib=libstdc++ -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
|
|
|
// RUN: not %clang -x objective-c++ -target i386-apple-darwin10 -stdlib=libstdc++ -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
|
|
|
// RUN: not %clang -x c -target i386-apple-darwin10 -stdlib=libstdc++ -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
|
|
|
|
// RUN: not %clang -x c++ -target i386-apple-darwin10 -stdlib=libstdc++ -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
|
2024-06-16 11:25:25 +01:00
|
|
|
// RUN: not %clang -x objective-c -target x86_64-apple-darwin11 -mmacos-version-min=10.5 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTSUPPORTED %s
|
2011-06-15 23:02:42 +00:00
|
|
|
|
|
|
|
// Just to test clang is working.
|
|
|
|
# foo
|
|
|
|
|
2012-08-21 02:47:43 +00:00
|
|
|
// CHECK: error: -fobjc-arc is not supported on platforms using the legacy runtime
|
2011-06-15 23:02:42 +00:00
|
|
|
// CHECK-NOT: invalid preprocessing directive
|
|
|
|
|
2012-08-21 02:47:43 +00:00
|
|
|
// NOTOBJC-NOT: error: -fobjc-arc is not supported on platforms using the legacy runtime
|
2011-06-15 23:02:42 +00:00
|
|
|
// NOTOBJC: invalid preprocessing directive
|
2012-02-29 03:43:52 +00:00
|
|
|
|
2016-04-02 05:29:00 +00:00
|
|
|
// NOTSUPPORTED: error: -fobjc-arc is not supported on versions of OS X prior to 10.6
|