2016-05-31 00:36:48 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-macho -emit-llvm -o %t %s
|
2011-04-13 07:30:52 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-NEXT < %t %s
|
2008-09-04 12:36:23 +08:00
|
|
|
|
2011-04-13 07:30:52 +08:00
|
|
|
// Check that we set alignment 1 on the string.
|
|
|
|
//
|
2014-01-21 04:33:18 +08:00
|
|
|
// CHECK-NEXT: @.str = {{.*}}constant [13 x i8] c"Hello World!\00", section "__TEXT,__cstring,cstring_literals", align 1
|
2011-04-13 07:30:52 +08:00
|
|
|
|
2016-05-31 00:36:48 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-macho -fobjc-runtime=gcc -emit-llvm -o %t %s
|
2011-04-13 07:30:52 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-GNU < %t %s
|
|
|
|
// CHECK-GNU: NXConstantString
|
|
|
|
|
2016-05-31 00:36:48 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-macho -fobjc-runtime=gcc -fconstant-string-class NSConstantString -emit-llvm -o %t %s
|
2011-04-13 07:30:52 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-GNU-WITH-CLASS < %t %s
|
|
|
|
// CHECK-GNU-WITH-CLASS: NSConstantString
|
2008-09-04 12:36:23 +08:00
|
|
|
id a = @"Hello World!";
|
|
|
|
|