summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/darwin-ld-20040809-1.c
diff options
context:
space:
mode:
authordpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-11 21:26:12 +0000
committerdpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-11 21:26:12 +0000
commitb7d2528765d80061219a9cf24a2b6d9079bcaf20 (patch)
tree701d5540297509ffda24aa6d7e4b38eb2c62cc66 /gcc/testsuite/gcc.dg/darwin-ld-20040809-1.c
parentea32a06ed4deab6073649c829f69aef2a72f0c70 (diff)
downloadgcc-b7d2528765d80061219a9cf24a2b6d9079bcaf20.tar.gz
* config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
and -no_dead_strip_inits_and_terms. (LINK_SPEC): Same. * doc/invoke.texi (Darwin Options): Document -dead_strip and -no_dead_strip_inits_and_terms. * gcc.dg/darwin-ld-20040809-1.c: New test. * gcc.dg/darwin-ld-20040809-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85822 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/darwin-ld-20040809-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/darwin-ld-20040809-1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/darwin-ld-20040809-1.c b/gcc/testsuite/gcc.dg/darwin-ld-20040809-1.c
new file mode 100644
index 00000000000..c54a4aa0cfb
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/darwin-ld-20040809-1.c
@@ -0,0 +1,13 @@
+/* Test -dead_strip support. */
+/* Contributed by Devang Patel <dpatel@apple.com> */
+
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options "-dead_strip" } */
+
+
+int
+main ()
+{
+ return 0;
+}
+