blob: a1daa9284b81c6049a28e32a62b511166ec93689 [file] [log] [blame]
Saleem Abdulrasool2460a36f2016-05-30 16:36:48 +00001// REQUIRES: x86-registered-target
2
3// RUN: %clang_cc1 -triple x86_64-macho -emit-llvm -o %t %s
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +00004// RUN: FileCheck --check-prefix=CHECK-NEXT < %t %s
Daniel Dunbarc01f56c2008-09-04 04:36:23 +00005
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +00006// Check that we set alignment 1 on the string.
7//
Rafael Espindolad19f80a2014-01-20 20:33:18 +00008// CHECK-NEXT: @.str = {{.*}}constant [13 x i8] c"Hello World!\00", section "__TEXT,__cstring,cstring_literals", align 1
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +00009
Saleem Abdulrasool2460a36f2016-05-30 16:36:48 +000010// RUN: %clang_cc1 -triple x86_64-macho -fobjc-runtime=gcc -emit-llvm -o %t %s
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +000011// RUN: FileCheck --check-prefix=CHECK-GNU < %t %s
12// CHECK-GNU: NXConstantString
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +000013
Saleem Abdulrasool2460a36f2016-05-30 16:36:48 +000014// RUN: %clang_cc1 -triple x86_64-macho -fobjc-runtime=gcc -fconstant-string-class NSConstantString -emit-llvm -o %t %s
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +000015// RUN: FileCheck --check-prefix=CHECK-GNU-WITH-CLASS < %t %s
16// CHECK-GNU-WITH-CLASS: NSConstantString
Daniel Dunbarc01f56c2008-09-04 04:36:23 +000017id a = @"Hello World!";
18