2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-macosx10.7.0 -rewrite-objc %s -o - -### 2>&1 | \
|
2010-02-11 11:16:21 +08:00
|
|
|
// RUN: FileCheck -check-prefix=TEST0 %s
|
2010-07-20 03:44:22 +08:00
|
|
|
// TEST0: clang{{.*}}" "-cc1"
|
|
|
|
// TEST0: "-rewrite-objc"
|
|
|
|
// FIXME: CHECK-NOT is broken somehow, it doesn't work here. Check adjacency instead.
|
2011-12-06 11:46:28 +08:00
|
|
|
// TEST0: "-fmessage-length" "0" "-stack-protector" "1" "-mstackrealign" "-fblocks" "-fobjc-fragile-abi" "-fno-objc-infer-related-result-type" "-fobjc-exceptions" "-fexceptions" "-fdiagnostics-show-option"
|
2010-07-20 03:44:22 +08:00
|
|
|
// TEST0: rewrite-objc.m"
|
2010-02-11 11:16:21 +08:00
|
|
|
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: not %clang -ccc-no-clang -target unknown -rewrite-objc %s -o - -### 2>&1 | \
|
2010-02-11 11:16:21 +08:00
|
|
|
// RUN: FileCheck -check-prefix=TEST1 %s
|
|
|
|
// TEST1: invalid output type 'rewritten-objc' for use with gcc
|
|
|
|
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: not %clang -ccc-no-clang -target i386-apple-darwin10 -rewrite-objc %s -o - -### 2>&1 | \
|
2010-02-11 11:16:21 +08:00
|
|
|
// RUN: FileCheck -check-prefix=TEST2 %s
|
|
|
|
// TEST2: invalid output type 'rewritten-objc' for use with gcc
|