c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / string_merge1.adb
blobf3fcac977d2760fd5b7fed205b2a0f079ce15cc4
1 -- { dg-do compile }
2 -- { dg-require-effective-target string_merging }
3 -- { dg-options "-O1 -fmerge-all-constants" }
5 procedure String_Merge1 is
6 procedure Process (X : String);
7 pragma Import (Ada, Process);
8 begin
9 Process ("ABCD");
10 end;
12 -- We expect something like:
14 -- .section .rodata.str1.1,"aMS",@progbits,1
15 -- .LC1:
16 -- .string "ABCD"
18 -- { dg-final { scan-assembler-times "\\.rodata\\.str" 1 } }