2015-02-03 07:38:27 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -triple=x86_64-apple-darwin9 -emit-llvm -o - < %s | FileCheck %s
|
2009-04-10 05:55:45 +08:00
|
|
|
|
2015-02-03 03:30:54 +08:00
|
|
|
// CHECK-DAG: @[[complex_int:.*]] = private unnamed_addr constant [3 x i8] c"ji\00", align 1
|
2015-03-14 02:21:46 +08:00
|
|
|
// CHECK-DAG: @a = global i8* getelementptr inbounds ([3 x i8], [3 x i8]* @[[complex_int]], i32 0, i32 0), align 8
|
2009-04-10 05:55:45 +08:00
|
|
|
char *a = @encode(_Complex int);
|
|
|
|
|
2015-02-03 03:30:54 +08:00
|
|
|
// CHECK-DAG: @[[complex_float:.*]] = private unnamed_addr constant [3 x i8] c"jf\00", align 1
|
2015-03-14 02:21:46 +08:00
|
|
|
// CHECK-DAG: @b = global i8* getelementptr inbounds ([3 x i8], [3 x i8]* @[[complex_float]], i32 0, i32 0), align 8
|
2009-04-10 05:55:45 +08:00
|
|
|
char *b = @encode(_Complex float);
|
|
|
|
|
2015-02-03 03:30:54 +08:00
|
|
|
// CHECK-DAG: @[[complex_double:.*]] = private unnamed_addr constant [3 x i8] c"jd\00", align 1
|
2015-03-14 02:21:46 +08:00
|
|
|
// CHECK-DAG: @c = global i8* getelementptr inbounds ([3 x i8], [3 x i8]* @[[complex_double]], i32 0, i32 0), align 8
|
2009-04-10 05:55:45 +08:00
|
|
|
char *c = @encode(_Complex double);
|
|
|
|
|
2015-02-03 03:30:54 +08:00
|
|
|
// CHECK-DAG: @[[int_128:.*]] = private unnamed_addr constant [2 x i8] c"t\00", align 1
|
2015-03-14 02:21:46 +08:00
|
|
|
// CHECK-DAG: @e = global i8* getelementptr inbounds ([2 x i8], [2 x i8]* @[[int_128]], i32 0, i32 0), align 8
|
2009-04-30 10:43:43 +08:00
|
|
|
char *e = @encode(__int128_t);
|
|
|
|
|
2015-02-03 03:30:54 +08:00
|
|
|
// CHECK-DAG: @[[uint_128:.*]] = private unnamed_addr constant [2 x i8] c"T\00", align 1
|
2015-03-14 02:21:46 +08:00
|
|
|
// CHECK-DAG: @f = global i8* getelementptr inbounds ([2 x i8], [2 x i8]* @[[uint_128]], i32 0, i32 0), align 8
|
2009-04-30 10:43:43 +08:00
|
|
|
char *f = @encode(__uint128_t);
|