2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -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
|
|
|
|
2012-07-04 04:49:52 +08:00
|
|
|
// RUN: %clang_cc1 -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
|
|
|
|
|
2012-07-04 04:49:52 +08:00
|
|
|
// RUN: %clang_cc1 -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!";
|
|
|
|
|