[llvm-commits] [llvm] r95014 - /llvm/trunk/test/FrontendObjC/2010-02-01-utf16-with-null.m
Evan Cheng
evan.cheng at apple.com
Mon Feb 1 15:36:13 PST 2010
On Feb 1, 2010, at 3:29 PM, Chris Lattner wrote:
>
> On Feb 1, 2010, at 2:32 PM, Evan Cheng wrote:
>
>> Author: evancheng
>> Date: Mon Feb 1 16:32:42 2010
>> New Revision: 95014
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=95014&view=rev
>> Log:
>> Add test case for 95013.
>
> Hey Evan,
>
> I don't think this will go into ustring anyway, you need a non-ascii (unicode) character in there as well as \0.
Does '@' mean it's going to be a CFString?
This compiles to the following before:
.section __TEXT,__ustring
.align 1
___utf16_string_1:
.asciz "g\000o\000o\000d\000\000\000b\000y\000e\000\000"
Now:
.section __TEXT,__const
.align 1
___utf16_string_1:
.asciz "g\000o\000o\000d\000\000\000b\000y\000e\000\000"
Evan
>
> -Chris
>
>
>>
>> Added:
>> llvm/trunk/test/FrontendObjC/2010-02-01-utf16-with-null.m
>>
>> Added: llvm/trunk/test/FrontendObjC/2010-02-01-utf16-with-null.m
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendObjC/2010-02-01-utf16-with-null.m?rev=95014&view=auto
>>
>> ==============================================================================
>> --- llvm/trunk/test/FrontendObjC/2010-02-01-utf16-with-null.m (added)
>> +++ llvm/trunk/test/FrontendObjC/2010-02-01-utf16-with-null.m Mon Feb 1 16:32:42 2010
>> @@ -0,0 +1,5 @@
>> +/* RUN: %llvmgcc -w -x objective-c -S %s -o - | not grep {__ustring}
>> + rdar://7589850 */
>> +
>> +void *P = @"good\0bye";
>> +
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list