diff options
Diffstat (limited to 'test/Driver/rewrite-objc.m')
-rw-r--r-- | test/Driver/rewrite-objc.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Driver/rewrite-objc.m b/test/Driver/rewrite-objc.m new file mode 100644 index 0000000..38993fc --- /dev/null +++ b/test/Driver/rewrite-objc.m @@ -0,0 +1,11 @@ +// RUN: %clang -ccc-host-triple unknown -rewrite-objc %s -o - -### 2>&1 | \ +// RUN: FileCheck -check-prefix=TEST0 %s +// TEST0: clang{{.*}}" "-rewrite-objc" + +// RUN: not %clang -ccc-no-clang -ccc-host-triple unknown -rewrite-objc %s -o - -### 2>&1 | \ +// RUN: FileCheck -check-prefix=TEST1 %s +// TEST1: invalid output type 'rewritten-objc' for use with gcc + +// RUN: not %clang -ccc-no-clang -ccc-host-triple i386-apple-darwin10 -rewrite-objc %s -o - -### 2>&1 | \ +// RUN: FileCheck -check-prefix=TEST2 %s +// TEST2: invalid output type 'rewritten-objc' for use with gcc |