blob: 0a65496373580fc80f084c47d7259a17699f7764 [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm -o %t %s
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +00002// RUN: FileCheck --check-prefix=CHECK-NEXT < %t %s
Daniel Dunbarc01f56c2008-09-04 04:36:23 +00003
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +00004// Check that we set alignment 1 on the string.
5//
Rafael Espindolad19f80a2014-01-20 20:33:18 +00006// 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 +00007
David Chisnallb601c962012-07-03 20:49:52 +00008// RUN: %clang_cc1 -fobjc-runtime=gcc -emit-llvm -o %t %s
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +00009// RUN: FileCheck --check-prefix=CHECK-GNU < %t %s
10// CHECK-GNU: NXConstantString
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +000011
David Chisnallb601c962012-07-03 20:49:52 +000012// RUN: %clang_cc1 -fobjc-runtime=gcc -fconstant-string-class NSConstantString -emit-llvm -o %t %s
Daniel Dunbar9c8cd4c2011-04-12 23:30:52 +000013// RUN: FileCheck --check-prefix=CHECK-GNU-WITH-CLASS < %t %s
14// CHECK-GNU-WITH-CLASS: NSConstantString
Daniel Dunbarc01f56c2008-09-04 04:36:23 +000015id a = @"Hello World!";
16