##
-# Copyright (c) 2008 Apple Inc. All rights reserved.
+# Copyright (c) 2008-2010 Apple Inc. All rights reserved.
#
# @APPLE_LICENSE_HEADER_START@
#
include ${TESTROOT}/include/common.makefile
#
-# Test that utf16 cfstring literals are not coalesced.
+# Test that utf16 cfstring literals are coalesced.
# There is 3 CFSTR in foo.m and 1 CFSTR in bar.m
-# After coalescing and dead stripping there should be only one CFSTR in the output
+# After coalescing and dead stripping there should be only two CFSTR in the output
#
ifeq (,${findstring 64,$(ARCH)})
- CFSTRING_SIZE = 48
+ CFSTRING_SIZE = 32
else
- CFSTRING_SIZE = 96
+ CFSTRING_SIZE = 64
endif
- USTRING_SIZE = 37
+ USTRING_SIZE = 28
all:
${CC} ${CCFLAGS} foo.m bar.m -o foo -framework CoreFoundation -dead_strip
- size -l foo | grep "__cfstring: ${CFSTRING_SIZE}" | ${FAIL_IF_EMPTY}
- size -l foo | grep "__ustring: ${USTRING_SIZE}" | ${FAIL_IF_EMPTY}
+ size -m -l foo | grep "__cfstring: ${CFSTRING_SIZE}" | ${FAIL_IF_EMPTY}
+ size -m -l foo | grep "__ustring: ${USTRING_SIZE}" | ${FAIL_IF_EMPTY}
${PASS_IFF_GOOD_MACHO} foo
clean: