// RUN: %Slang %s // RUN: %rs-filecheck-wrapper %s // CHECK: @ic = constant i32 99, align 4 // CHECK: @ica = global [2 x i32] [i32 99, i32 1000], align 4 // CHECK: @fa = global [4 x float] [float 1.000000e+00, float 0x4023FFF2E0000000, float 0.000000e+00, float 0.000000e+00], align 4 // CHECK: @da = global [2 x double] [double 7.000000e+00, double 8.888880e+00], align 8 // CHECK: @ca = global [4 x i8] c"a\07bc", align 1 // CHECK: @sa = global [4 x i16] [i16 1, i16 1, i16 2, i16 3], align 2 // CHECK: @ia = global [4 x i32] [i32 5, i32 8, i32 0, i32 0], align 4 // CHECK: @la = global [2 x i64] [i64 13, i64 21], align 8 // CHECK: @lla = global [4 x i64] [i64 34, i64 0, i64 0, i64 0], align 8 // CHECK: @ba = global [3 x i8] c"\01\00\00", align 1 #pragma version(1) #pragma rs java_package_name(array_init) const int ic = 99; int ica[2] = {ic, 1000}; float fa[4] = {1.0, 9.9999f}; double da[2] = {7.0, 8.88888}; char ca[4] = {'a', 7, 'b', 'c'}; short sa[4] = {1, 1, 2, 3}; int ia[4] = {5, 8}; long la[2] = {13, 21}; long long lla[4] = {34}; bool ba[3] = {true, false};