Home | History | Annotate | Download | only in CodeGenObjC
      1 // REQUIRES: x86-registered-target
      2 
      3 // RUN: %clang_cc1 -triple x86_64-macho -emit-llvm -o %t %s
      4 // RUN: FileCheck --check-prefix=CHECK-NEXT < %t %s
      5 
      6 // Check that we set alignment 1 on the string.
      7 //
      8 // CHECK-NEXT: @.str = {{.*}}constant [13 x i8] c"Hello World!\00", section "__TEXT,__cstring,cstring_literals", align 1
      9 
     10 // RUN: %clang_cc1 -triple x86_64-macho -fobjc-runtime=gcc -emit-llvm -o %t %s
     11 // RUN: FileCheck --check-prefix=CHECK-GNU < %t %s
     12 // CHECK-GNU: NXConstantString
     13 
     14 // RUN: %clang_cc1 -triple x86_64-macho -fobjc-runtime=gcc -fconstant-string-class NSConstantString -emit-llvm -o %t %s
     15 // RUN: FileCheck --check-prefix=CHECK-GNU-WITH-CLASS < %t %s
     16 // CHECK-GNU-WITH-CLASS: NSConstantString
     17 id a = @"Hello World!";
     18 
     19