1 /* Make sure strings are recognized as being accessible through larl.
2    This requires the symbol ref alignment properly propagated to
3    encode_section_info.  */
4 
5 /* { dg-do compile } */
6 /* { dg-options "-march=z900 -O2 -fpic" } */
7 
8 
9 extern void foo(const char*, const char*, const char*);
10 
bar(int i)11 void bar(int i)
12 {
13   const char t1[10] = "test";
14   const char t2[10] = "test2";
15   const char t3[2][10] = {
16        "foofoofoo",
17        "barbarbar",
18     };
19   foo(t1, t2, t3[i]);
20 }
21 
22 /* { dg-final { scan-assembler-not "GOTOFF" } } */
23