Rafael Espindola | 96e7813 | 2013-07-04 16:16:58 +0000 | [diff] [blame] | 1 | // 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 |
| 6 | // 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 |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 7 | |
| 8 | // Just to test clang is working. |
| 9 | # foo |
| 10 | |
John McCall | 0a7dd78 | 2012-08-21 02:47:43 +0000 | [diff] [blame] | 11 | // CHECK: error: -fobjc-arc is not supported on platforms using the legacy runtime |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 12 | // CHECK-NOT: invalid preprocessing directive |
| 13 | |
John McCall | 0a7dd78 | 2012-08-21 02:47:43 +0000 | [diff] [blame] | 14 | // NOTOBJC-NOT: error: -fobjc-arc is not supported on platforms using the legacy runtime |
John McCall | f85e193 | 2011-06-15 23:02:42 +0000 | [diff] [blame] | 15 | // NOTOBJC: invalid preprocessing directive |
Argyrios Kyrtzidis | 5840dd9 | 2012-02-29 03:43:52 +0000 | [diff] [blame] | 16 | |
John McCall | 80fd37a | 2012-08-27 01:56:21 +0000 | [diff] [blame] | 17 | // UNSUPPORTED: error: -fobjc-arc is not supported on versions of OS X prior to 10.6 |