File: numbers

package info (click to toggle)
cpphs 0.7-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 360 kB
  • ctags: 18
  • sloc: haskell: 939; makefile: 79; sh: 36; ansic: 11
file content (29 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (10)
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
26
27
28
29
#if 1
number (1) in if
#else
rejected number (1) in if
#endif

#if 0
wrongly accepted number (0) in if
#else
number (0) in if
#endif

#if eaf
false hex number in if
#else
rejected false hex number in if
#endif

#if 0x1
real hex number (0x1) in if
#else
rejected real hex number (0x1) in if
#endif

#if 0x00
wrongly accepted real hex number (0x00) in if
#else
hex number (0x00) in if
#endif