File: pr96859.f90

package info (click to toggle)
gcc-arm-none-eabi 15%3A12.2.rel1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 959,712 kB
  • sloc: cpp: 3,275,382; ansic: 2,061,766; ada: 840,956; f90: 208,513; makefile: 76,132; asm: 73,433; xml: 50,448; exp: 34,146; sh: 32,436; objc: 15,637; fortran: 14,012; python: 11,991; pascal: 6,787; awk: 4,779; perl: 3,054; yacc: 338; ml: 285; lex: 201; haskell: 122
file content (25 lines) | stat: -rw-r--r-- 1,308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
! PR fortran/96859
! { dg-do run }

program pr96859
  if (merge_bits(32767_2, o'1234567', 32767_2).ne.32767_2) stop 1
  if (merge_bits(o'1234567', 32767_2, o'1234567').ne.32767_2) stop 2
  if (merge_bits(32767_2, o'1234567', b'010101').ne.14711_2) stop 3
  if (merge_bits(32767_2, o'1234567', z'12345678').ne.32639_2) stop 4
  if (int (o'1034567', 2).ne.14711_2) stop 5
  if (int (o'1234567', 2).ne.14711_2) stop 6
  if (int (o'1434567', 2).ne.14711_2) stop 7
  if (int (o'1634567', 2).ne.14711_2) stop 8
  if (int (o'1134567', 2).ne.-18057_2) stop 9
  if (int (o'1334567', 2).ne.-18057_2) stop 10
  if (int (o'1534567', 2).ne.-18057_2) stop 11
  if (int (o'1734567', 2).ne.-18057_2) stop 12
  if (int (o'70123456776543211234567', 8).ne.1505855851274254711_8) stop 13
  if (int (o'72123456776543211234567', 8).ne.1505855851274254711_8) stop 14
  if (int (o'74123456776543211234567', 8).ne.1505855851274254711_8) stop 15
  if (int (o'76123456776543211234567', 8).ne.1505855851274254711_8) stop 16
  if (int (o'71123456776543211234567', 8).ne.-7717516185580521097_8) stop 17
  if (int (o'73123456776543211234567', 8).ne.-7717516185580521097_8) stop 18
  if (int (o'75123456776543211234567', 8).ne.-7717516185580521097_8) stop 19
  if (int (o'77123456776543211234567', 8).ne.-7717516185580521097_8) stop 20
end