blob: 9997b46afdb469b32c42ca780d995fac999ce783 [file] [log] [blame]
/* APPLE LOCAL file 4719165 */
/* Test for new way of representing constant string structure */
/* { dg-options "-mmacosx-version-min=10.5 -fnext-runtime -m64 -fobjc-abi-version=2 -fno-constant-cfstrings" } */
/* { dg-do compile { target *-*-darwin* } } */
@interface NSConstantString { id isa; const char *c; int l; } @end
@implementation NSConstantString @end
int _objc_empty_cache = 0;
int _objc_empty_vtable = 0;
int main() {
return (int)(long)@"foo";
}
/* { dg-final { scan-assembler "LC1:\n\t.quad\t_OBJC_CLASS_\\\$_NSConstantString" } } */