Add a test that we are passing the -fobjc-default-synthesize flag for Apple and
authorDavid Chisnall <csdavec@swan.ac.uk>
Tue, 5 Mar 2013 11:20:04 +0000 (11:20 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Tue, 5 Mar 2013 11:20:04 +0000 (11:20 +0000)
non-Apple platforms.

llvm-svn: 176477

clang/test/Driver/objc_default_synth.m [new file with mode: 0644]

diff --git a/clang/test/Driver/objc_default_synth.m b/clang/test/Driver/objc_default_synth.m
new file mode 100644 (file)
index 0000000..a8c7f7e
--- /dev/null
@@ -0,0 +1,6 @@
+// We should be synthesizing properties by default on all platforms now.
+// RUN: %clang -### -target armv7-unknown-freebsd %s 2>&1 | FileCheck %s
+// RUN: %clang -### -target armv7-apple-ios %s 2>&1 | FileCheck %s
+// RUN: %clang -### -target i686-apple-macosx %s 2>&1 | FileCheck %s
+// REQUIRES: clang-driver
+// CHECK: -fobjc-default-synthesize