1// RUN: %Slang %s
2// RUN: %rs-filecheck-wrapper %s
3// CHECK: @ic = local_unnamed_addr constant i32 99, align 4
4// CHECK: @ica = local_unnamed_addr global [2 x i32] [i32 99, i32 1000], align 4
5// CHECK: @fa = local_unnamed_addr global [4 x float] [float 1.000000e+00, float 0x4023FFF2E0000000, float 0.000000e+00, float 0.000000e+00], align 4
6// CHECK: @da = local_unnamed_addr global [2 x double] [double 7.000000e+00, double 8.888880e+00], align 8
7// CHECK: @ca = local_unnamed_addr global [4 x i8] c"a\07bc", align 1
8// CHECK: @sa = local_unnamed_addr global [4 x i16] [i16 1, i16 1, i16 2, i16 3], align 2
9// CHECK: @ia = local_unnamed_addr global [4 x i32] [i32 5, i32 8, i32 0, i32 0], align 4
10// CHECK: @la = local_unnamed_addr global [2 x i64] [i64 13, i64 21], align 8
11// CHECK: @lla = local_unnamed_addr global [4 x i64] [i64 34, i64 0, i64 0, i64 0], align 8
12// CHECK: @ba = local_unnamed_addr global [3 x i8] c"\01\00\00", align 1
13
14
15#pragma version(1)
16#pragma rs java_package_name(array_init)
17
18const int ic = 99;
19
20int ica[2] = {ic, 1000};
21
22float fa[4] = {1.0, 9.9999f};
23double da[2] = {7.0, 8.88888};
24char ca[4] = {'a', 7, 'b', 'c'};
25short sa[4] = {1, 1, 2, 3};
26int ia[4] = {5, 8};
27long la[2] = {13, 21};
28long long lla[4] = {34};
29bool ba[3] = {true, false};
30
31