• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #pragma version(1)
2 #pragma rs java_package_name(foo)
3 
4 const int ic = 99;
5 
6 int ica[2] = {ic, 1000};
7 
8 float fa[4] = {1.0, 9.9999f};
9 double da[2] = {7.0, 8.88888};
10 char ca[4] = {'a', 7, 'b', 'c'};
11 short sa[4] = {1, 1, 2, 3};
12 int ia[4] = {5, 8};
13 long la[2] = {13, 21};
14 long long lla[4] = {34};
15 bool ba[3] = {true, false};
16 
17 // Clang should implicitly promote this type to have a constant size of 3.
18 char implicitArray[] = { 'a', 'b', 'c' };
19 
20 // Clang should implicitly promote this type to have a constant size of 1.
21 // Note that this creates a warning.
22 char implicitArrayUninit[];
23