PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / litpool-str-1.c
blobcd921d2a56529ea1b18cc1e1f64b3485dc5a3270
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. */
5 /* { dg-do compile } */
6 /* { dg-options "-march=z900 -O2 -fpic" } */
9 extern void foo(const char*, const char*, const char*);
11 void bar(int i)
13 const char t1[10] = "test";
14 const char t2[10] = "test2";
15 const char t3[2][10] = {
16 "foofoofoo",
17 "barbarbar",
19 foo(t1, t2, t3[i]);
22 /* { dg-final { scan-assembler-not "GOTOFF" } } */