repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update count_scale for AutoFDO to prevent over-scale.
[official-gcc.git]
/
gcc-4_8
/
gcc
/
testsuite
/
gnat.dg
/
sizetype1.adb
blob
e5d12c61e094b124f206aa6f6715e74fc29595d2
1
-- { dg-do run }
2
3
with
Interfaces
.
C
;
use
Interfaces
.
C
;
4
5
procedure
Sizetype1
is
6
7
TC_String
:
String
(
1
.
.8
) :=
"abcdefgh"
;
8
TC_No_nul
:
constant
char_array
:=
To_C
(
TC_String
,
False
);
9
10
begin
11
if
TC_No_nul
(
0
) /=
To_C
(
'a'
)
then
12
raise
Program_Error
;
13
end if
;
14
end
;